sdlGetGamepadPlayerIndex function gamepad
Get the player index of an opened gamepad.
For XInput gamepads this returns the XInput user index.
\param gamepad the gamepad object to query. \returns the player index for gamepad, or -1 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_SetGamepadPlayerIndex
extern SDL_DECLSPEC int SDLCALL SDL_GetGamepadPlayerIndex(SDL_Gamepad *gamepad)
Implementation
int sdlGetGamepadPlayerIndex(Pointer<SdlGamepad> gamepad) {
  final sdlGetGamepadPlayerIndexLookupFunction = _libSdl
      .lookupFunction<
        Int32 Function(Pointer<SdlGamepad> gamepad),
        int Function(Pointer<SdlGamepad> gamepad)
      >('SDL_GetGamepadPlayerIndex');
  return sdlGetGamepadPlayerIndexLookupFunction(gamepad);
}