SDL/src/joystick
Ryan C. Gordon 5d7562c7e2 Mac OS X: Look for joystick hotplug in its own CFRunLoop.
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!
2014-04-24 23:24:48 -04:00
..
android Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
bsd Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
darwin Mac OS X: Look for joystick hotplug in its own CFRunLoop. 2014-04-24 23:24:48 -04:00
dummy Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haiku Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
iphoneos Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
linux Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
psp Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
windows Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
winrt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_gamecontroller.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_gamecontrollerdb.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_joystick.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_joystick_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_sysjoystick.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
sort_controllers.py Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00