sdlGetGamepadConnectionState function
Get the connection state of a gamepad.
\param gamepad the gamepad object to query.
\returns the connection state on success or
SDL_JOYSTICK_CONNECTION_INVALID
on failure; call SDL_GetError()
for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_JoystickConnectionState SDLCALL SDL_GetGamepadConnectionState(SDL_Gamepad *gamepad)
Implementation
int sdlGetGamepadConnectionState(Pointer<SdlGamepad> gamepad) {
final sdlGetGamepadConnectionStateLookupFunction = libSdl3.lookupFunction<
Int32 Function(Pointer<SdlGamepad> gamepad),
int Function(
Pointer<SdlGamepad> gamepad)>('SDL_GetGamepadConnectionState');
return sdlGetGamepadConnectionStateLookupFunction(gamepad);
}