mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
c2e2565144
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? |
||
---|---|---|
.. | ||
android | ||
bsd | ||
darwin | ||
dummy | ||
emscripten | ||
haiku | ||
iphoneos | ||
linux | ||
psp | ||
windows | ||
SDL_gamecontroller.c | ||
SDL_gamecontrollerdb.h | ||
SDL_joystick_c.h | ||
SDL_joystick.c | ||
SDL_sysjoystick.h | ||
sort_controllers.py |