getSteamHandle method

int getSteamHandle()

Get the Steam Input handle of an opened gamepad, if available.

Returns an InputHandle_t for the gamepad that can be used with Steam Input API: https://partner.steamgames.com/doc/api/ISteamInput

\param gamepad the gamepad object to query. \returns the gamepad handle, or 0 if unavailable.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC Uint64 SDLCALL SDL_GetGamepadSteamHandle(SDL_Gamepad *gamepad)

{@category gamepad}

Implementation

int getSteamHandle() => sdlGetGamepadSteamHandle(this);