Allow a shift button per devices.
Move shift_button to mapping struct so that a shift button may be assigned for each devices.
Your code works fine except you forgot to add the new config keys in known_keys in mapparser.c. Thank you very much.
Here's a patch that fixes a few issues: * Set min and max axis values to the virtual device from map config. This enable SDL to detect axis as "hats" when the range is -1 to 1. * Set the default minimum to -32768 instead, which fix the issue I was having above. * Fix formula to rescale axis value between -32767 and 32767. * Round and clamp value when rescaling value when we have a deadzone. * Change dev.absfuzz[i] to dev.absfuzz[j] in register_devices.
Here's a patch that fixes a few issues: * Set min and max axis values to the virtual device from map config. This enable SDL to detect axis as "hats" when the range is -1 to 1. * Set the default minimum to -32768 instead, which fix the issue I was having above. * Fix formula to rescale axis value between -32767 and 32767. * Round and clamp value when rescaling value when we have a deadzone. * Change dev.absfuzz[i] to dev.absfuzz[j] in register_devices.
Hi, thanks for the tool. I packaged it in the AUR. I am having an issue: axes are being reset to -1 instead of 0. After some debugging, I can see the value 0 being written to the device in the set_joy_axis function, but somehow programs will report -1. In fact, anything 0 or below gets dropped by 1. Some program will think that my dpad is always pressed. My controllers dpad are axes that report -1, 0 or 1 and programs like the game controller setting panel in KDE will report -32768, 0 or 32767. My...
Implement formatting function for hexadecimal double.
* Fix `__pformat_int` not printing zero.