sdlGetGamepadType function gamepad
Get the type of an opened gamepad.
\param gamepad the gamepad object to query. \returns the gamepad type, or SDL_GAMEPAD_TYPE_UNKNOWN if it's not available.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_GetGamepadTypeForID
extern SDL_DECLSPEC SDL_GamepadType SDLCALL SDL_GetGamepadType(SDL_Gamepad *gamepad)
Implementation
int sdlGetGamepadType(Pointer<SdlGamepad> gamepad) {
final sdlGetGamepadTypeLookupFunction = _libSdl
.lookupFunction<
Int32 Function(Pointer<SdlGamepad> gamepad),
int Function(Pointer<SdlGamepad> gamepad)
>('SDL_GetGamepadType');
return sdlGetGamepadTypeLookupFunction(gamepad);
}