The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: slikrik98 on April 04, 2024, 07:33:57 pm
-
I have a 4-player arcade cabinet and for my Steam-based games, I use Keyboard2XInput to emulate xbox controllers from my Xtension controller panel.
In trying to configure TMNT Shredder's Revenge, I noticed that the Pad 3 button wasn't working in-game. This button triggers the "/" (forward slash) key, which I'm assuming is what the Keyboard2XInput refers to as "Divide". I can't seem to figure out why this keystroke is not resulting in an Xbox button press (Y in my case)
- I've confirmed that "Divide" appears nowhere else in my .ini file
- Using the actual keyboard attached to the PC -- and not the Xtension controller -- has the same result.
- "Divide" is (by default) mapped to "enableToggle" which I confirmed also doesn't work
- I've tested this out with https://hardwaretester.com/gamepad and this confirms that the Y button is not pressed
Am I mistaken that "/" and "Divide" are the same thing? If yes, how do I reference forward-slash in my K2X ini file?
-
For anyone who may run into this problem in the future: the "/" forward slash key is actually referenced in Keyboard2Xinput via the "OemQuestion" key, not "Divide".
-
Hi, for anyone struggling with key names :
You can find which name k2xi sees for this key by turning logs to debug: Edit the Keyboard2XinputGui.exe.config and change
<level value="Info" />
(line28) to
<level value="Debug" />
Launch k2xi, then mash the key multiple times, just to be sure (and only this key to help diagnosis), then exit k2xi. Open the k2xi.log file, and look for lines like these:
2024-04-05 19:28:02,393 [1] WARN Keyboard2XinputLib.Keyboard2Xinput- unmapped button NumPad9
The part after "unmapped button" (yes this is poorly named...) is the name of the key that was pressed and that k2xi expects in the mapping.ini file.
Don't forget to set the logs to Info again afterwards, as this could impact games performance (debug is very verbose).
Hope this helps !