sdlLockJoysticks function joystick
Locking for atomic access to the joystick API.
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.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC void SDLCALL SDL_LockJoysticks(void) SDL_ACQUIRE(SDL_joystick_lock)
Implementation
void sdlLockJoysticks(Pointer<NativeType> arg0) {
final sdlLockJoysticksLookupFunction = _libSdl
.lookupFunction<
Void Function(Pointer<NativeType> arg0),
void Function(Pointer<NativeType> arg0)
>('SDL_LockJoysticks');
return sdlLockJoysticksLookupFunction(arg0);
}