Protect the game controller API the same way the joystick API is protected from multi-threaded access

This commit is contained in:
Sam Lantinga
2016-12-08 10:13:45 -08:00
parent 1b08f0c179
commit a525017139
3 changed files with 43 additions and 11 deletions

View File

@@ -31,6 +31,9 @@ extern void SDL_JoystickQuit(void);
extern int SDL_GameControllerInit(void);
extern void SDL_GameControllerQuit(void);
/* Locking for multi-threaded access to the joystick API */
extern void SDL_LockJoystickList(void);
extern void SDL_UnlockJoystickList(void);
/* Internal event queueing functions */
extern void SDL_PrivateJoystickAdded(int device_index);