The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: slikrik98 on April 04, 2024, 07:33:57 pm

Title: Win11 & Keyboard2XInput "Divide" not working
Post 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)

Am I mistaken that "/" and "Divide" are the same thing? If yes, how do I reference forward-slash in my K2X ini file?

Title: Re: Win11 & Keyboard2XInput "Divide" not working
Post by: slikrik98 on April 05, 2024, 11:42:42 am
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".
Title: Re: Win11 & Keyboard2XInput "Divide" not working
Post by: Schwing on April 05, 2024, 01:47:06 pm
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
Code: [Select]
<level value="Info" /> (line28) to
Code: [Select]
<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:
Code: [Select]
2024-04-05 19:28:02,393 [1] WARN  Keyboard2XinputLib.Keyboard2Xinput- unmapped button NumPad9The 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 !