SDL/src/joystick
Paul Cercueil 1542300a89 joystick: linux: Avoid checking for gamepad mapping each frame
The information whether a specific joystick can be used as a gamepad is
not going to change every frame, so we can cache the result into a
variable.

This dramatically reduces the performance impact of SDL2 on small
embedded devices, since the code path that is now avoided was quite
heavy.

Fixes #4229.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2021-04-13 16:07:35 -07:00
..
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
bsd renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JOYSTICK_H 2021-01-24 00:51:25 -05:00
darwin Fixed bug 5195 - Replugging in "mixed" controller types crashes on macOS 2021-01-14 15:03:11 -08:00
dummy Updated copyright for 2021 2021-01-02 10:25:38 -08:00
emscripten Updated copyright for 2021 2021-01-02 10:25:38 -08:00
haiku Updated copyright for 2021 2021-01-02 10:25:38 -08:00
hidapi Only change joystick->nbuttons for Joy-Cons, since they're the only ones that have these "paddles" 2021-02-22 17:54:32 -08:00
iphoneos Disable system gestures on MFi controllers while they're open, so we get access to the back button, etc. 2021-03-22 19:19:01 -07:00
linux joystick: linux: Avoid checking for gamepad mapping each frame 2021-04-13 16:07:35 -07:00
os2 old os2 analogue joystick code ported from SDL-1.2. disabled by default, 2021-01-24 00:51:25 -05:00
psp move outdated winmm and psp joystick codes to struct _SDL_JoystickDriver 2021-01-24 00:51:25 -05:00
steam Updated copyright for 2021 2021-01-02 10:25:38 -08:00
virtual SDL_virtualjoystick.c: remove wrong #endif comment. 2021-01-24 00:51:24 -05:00
vita Formatting 2021-03-08 09:07:12 -08:00
windows Don't uncorrelate while rumble is active and stay correlated longer in case raw input messages are lagging a bit. 2021-02-10 10:22:19 -05:00
check_8bitdo.sh Fixed running on older versions of iOS 2020-04-27 13:31:10 -07:00
controller_type.h Use the correct name for the Amazon Luna Gamepad 2021-03-26 13:05:38 -07:00
SDL_gamecontroller.c Switch Joy-Con SL and SR buttons are now mapped to matching paddle positions so that all buttons can be accessed when using SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS 2021-02-22 17:54:32 -08:00
SDL_gamecontrollerdb.h Added mapping for the Amazon Luna controller on Linux 2021-03-26 13:53:58 -07:00
SDL_joystick.c SDL: let through a SetLED command every 5sec to deall with situations where the controller loses power when a computer is suspended 2021-04-12 11:25:42 -07:00
SDL_joystick_c.h Fix Xbox Series X controller on macOS 2021-02-10 10:22:19 -05:00
SDL_sysjoystick.h SDL: let through a SetLED command every 5sec to deall with situations where the controller loses power when a computer is suspended 2021-04-12 11:25:42 -07:00
sort_controllers.py Added support for SDL hints in the game controller mapping database 2020-03-12 19:47:28 -07:00
usb_ids.h Added support for the PowerA Xbox One Series X Wired Controller 2021-02-11 17:27:22 -08:00