getRealType method

int getRealType()

Get the type of an opened gamepad, ignoring any mapping override.

\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_GetRealGamepadTypeForID

extern SDL_DECLSPEC SDL_GamepadType SDLCALL SDL_GetRealGamepadType(SDL_Gamepad *gamepad)

{@category gamepad}

Implementation

int getRealType() => sdlGetRealGamepadType(this);