mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-10-17 10:37:16 +00:00
This allows the joystick hotplug to function without the main event loop (specifically: without SDL_INIT_VIDEO), and moves explicit polling for joysticks where it belongs at the low-level: in SDL_SYS_JoystickDetect(). This lets apps call SDL_JoystickUpdate() to get hotplug events and keep SDL_NumJoysticks() correct, as expected. As SDL_PumpEvents() (and SDL_PollEvents, etc) calls SDL_JoystickUpdate(), existing apps will function as before. Thanks to "raskie" on the forums for pointing this out! |
||
---|---|---|
.. | ||
android | ||
bsd | ||
darwin | ||
dummy | ||
haiku | ||
iphoneos | ||
linux | ||
psp | ||
windows | ||
winrt | ||
SDL_gamecontroller.c | ||
SDL_gamecontrollerdb.h | ||
SDL_joystick.c | ||
SDL_joystick_c.h | ||
SDL_sysjoystick.h | ||
sort_controllers.py |