sdl2_frt/src/joystick
Sam Lantinga c2e2565144 Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries
ny00

On Android, the keycodes KEYCODE_BUTTON_1..16 (actual values 188-203) are translated to SDL_Joystick buttons no. 20-35. These are currently ignored in SDL_gamecontroller.c.

The attached patch fixes this, by increasing k_nMaxReverseEntries from 20 to another arbitrary bound of 48.

Side-note: Maybe some log should be emitted in case of going over any such bound?
2016-10-01 13:02:20 -07:00
..
android Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
bsd Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
darwin Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
dummy Updated copyright to 2016 2016-01-02 10:10:34 -08:00
emscripten Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
haiku Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
iphoneos Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION. 2016-09-17 01:31:07 -03:00
linux Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
psp Patched to compile on various platforms. 2016-04-12 18:11:36 -04:00
windows Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
SDL_gamecontroller.c Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries 2016-10-01 13:02:20 -07:00
SDL_gamecontrollerdb.h Fixed sorting and name of XBox wireless controller entry 2016-08-16 12:02:22 -07:00
SDL_joystick_c.h Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
SDL_joystick.c Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
SDL_sysjoystick.h Updated copyright to 2016 2016-01-02 10:10:34 -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