sdlJoystickConnected function joystick
Get the status of a specified joystick.
\param joystick the joystick to query. \returns true if the joystick has been opened, false if it has not; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC bool SDLCALL SDL_JoystickConnected(SDL_Joystick *joystick)
Implementation
bool sdlJoystickConnected(Pointer<SdlJoystick> joystick) {
final sdlJoystickConnectedLookupFunction = _libSdl
.lookupFunction<
Uint8 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)
>('SDL_JoystickConnected');
return sdlJoystickConnectedLookupFunction(joystick) == 1;
}