mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Revert "Removed public joystick locking API"
This reverts commit a515f51ac0
.
We still need joystick locking to protect the gamepad mappings
This commit is contained in:
@@ -43,16 +43,6 @@ extern SDL_bool SDL_JoysticksInitialized(void);
|
||||
/* Return whether the joystick system is shutting down */
|
||||
extern SDL_bool SDL_JoysticksQuitting(void);
|
||||
|
||||
#ifdef SDL_THREAD_SAFETY_ANALYSIS
|
||||
extern SDL_mutex *SDL_joystick_lock;
|
||||
#endif
|
||||
|
||||
/* Locking for atomic access to the joystick API */
|
||||
extern void SDL_LockJoysticks(void) SDL_ACQUIRE(SDL_joystick_lock);
|
||||
|
||||
/* Unlocking for atomic access to the joystick API */
|
||||
extern void SDL_UnlockJoysticks(void) SDL_RELEASE(SDL_joystick_lock);
|
||||
|
||||
/* Return whether the joysticks are currently locked */
|
||||
extern SDL_bool SDL_JoysticksLocked(void);
|
||||
|
||||
|
Reference in New Issue
Block a user