Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

[GRRR NOT SOLVED!] Advanced Config Editor + key remapping (AHK advice needed)


Recommended Posts

Posted

OK - got excited when found this function tonight - but soon came across a snag!

Scenario: need to remap keyboard keys to other keys in emulators. Using a combo of minipac and keyboard hack in my cab. Keyboard hack maps Function keys (to "[" and "]" for e.g.). Have 2P Start mapped to Right Shift, to enable me to get two functions out of one button (e.g. "[" and "{" <shifted).

Need to remap "{" to, for instance, F3 in PCSX2 to Load a savestate.

Problem is when I use Advanced Config, and press 2P (in order to shift the "[") - it registers immediately as Right Shift. Pic:

Screenshot%20-%2028_12_2013%20%2C%2000_0

Tried Block Keys, but no joy. Is there any way to do this?

I was suprised to learn that xpadder doesn't register the keyboard as a controller - therefore can't find a way to use this!

Cheers

Posted

Never mind. Solved it via other means:

used this-

AutoHotKey

http://www.autohotkey.com/

And example of the script-


#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

+[::Numpad0
+,::Numpad6
+y::Numpad7
+u::Numpad8
+]::Numpad9
+h::NumpadAdd
+;::NumpadSub

Then converted to an exe. Then launched exe at GameEx startup and closed it at shutdown with two bat files and the launch before/after settings in the Tweaks page.

Posted

Dammit! That didn't work.

For some reason, the emu I tested this in still registers the RShift Button on initial keypress.

So messed about some more. Tried-

"KeyWait, RShift" -
still registers in emu on key down

"RShift::return
RShift up::Send RShift"
Still 'sees' R Shift

+ others (using "UP" command etc)

Is there any way for AHK to stop any application seeing Right Shift unless one of the following occur?:
- It is released without another key being pressed (i.e. send Rshift only when released) - this is my 2P button
- It is used with another key to make a hotkey (that is sends a hotkey from combo (e.g. * form RShift and [) but doesn't send the RShift after the hotkey

btw R Shift is mapped via WinIPac/minipac

getting very befuddled by all this. Test emu is Stella, but also does in WinIPac test mode.

CHeers

Guest
This topic is now closed to further replies.
×
×
  • Create New...