|
SDL3pp
A slim C++ wrapper for SDL3
|
Locking for atomic access to the joystick API. More...
Public Member Functions | |
| JoystickApiLock () | |
| Locking for atomic access to the joystick API. More... | |
| JoystickApiLock (const JoystickApiLock &other)=delete | |
| Copy constructor. | |
| constexpr | JoystickApiLock (JoystickApiLock &&other) noexcept |
| Move constructor. | |
| ~JoystickApiLock () | |
| Unlocking for atomic access to the joystick API. More... | |
| JoystickApiLock & | operator= (const JoystickApiLock &other)=delete |
| JoystickApiLock & | operator= (JoystickApiLock &&other) noexcept |
| Assignment operator. | |
| constexpr | operator bool () const |
| True if not locked. | |
| void | reset () |
| Unlocking for atomic access to the joystick API. More... | |
| void | release () |
| Releases the lock without unlocking. | |
The SDL joystick functions are thread-safe, however you can lock the joysticks while processing to guarantee that the joystick list won't change and joystick and gamepad events will not be delivered.
|
inline |