sdlJoystickConnected function
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.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_JoystickConnected(SDL_Joystick *joystick)
Implementation
bool sdlJoystickConnected(Pointer<SdlJoystick> joystick) {
final sdlJoystickConnectedLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)>('SDL_JoystickConnected');
return sdlJoystickConnectedLookupFunction(joystick) == 1;
}