mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 11:26:29 +00:00
Protect the game controller API the same way the joystick API is protected from multi-threaded access
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user