SDL/src/joystick/linux
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
..
SDL_sysjoystick.c joystick: linux: Avoid checking for gamepad mapping each frame 2021-04-13 16:07:35 -07:00
SDL_sysjoystick_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00