Ryujinx-SDL/src/joystick
Sam Lantinga 082132a70c Fixed binding the D-pad on some Super NES style controllers
Fixed a case where partial trigger pull could be bound to another button

There is a fundamental problem not resolved by this commit:

Some controllers have axes (triggers, pedals, etc.) that don't start at zero, but we're guaranteed that if we get a value that it's correct. For these controllers, the current code works, where we take the first value we get and use that as the zero point and generate axis motion starting from that point on.

Other controllers have digital axes (D-pad) that assume a zero starting point, and the first value we get is the min or max axis value when the D-pad is moved. For these controllers, the current code thinks that the zero point is the axis value after the D-pad motion and this doesn't work.

My hypothesis is that the first class of devices is more common and that we should solve for that, and add an exception to SDL_JoystickAxesCenteredAtZero() as needed for the second class of devices.
2017-01-03 23:39:28 -08:00
..
android Updated copyright for 2017 2017-01-01 18:33:28 -08:00
bsd Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
darwin Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
dummy Updated copyright for 2017 2017-01-01 18:33:28 -08:00
emscripten Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
haiku Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
iphoneos Updated copyright for 2017 2017-01-01 18:33:28 -08:00
linux Updated copyright for 2017 2017-01-01 18:33:28 -08:00
psp Updated copyright for 2017 2017-01-01 18:33:28 -08:00
windows Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
SDL_gamecontroller.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_gamecontrollerdb.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_joystick_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_joystick.c Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
SDL_sysjoystick.h Fixed binding the D-pad on some Super NES style controllers 2017-01-03 23:39:28 -08:00
sort_controllers.py Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00