getBindings method

Pointer<Pointer<SdlGamepadBinding>> getBindings(
  1. Pointer<Int32> count
)

Get the SDL joystick layer bindings for a gamepad.

\param gamepad a gamepad. \param count a pointer filled in with the number of bindings returned. \returns a NULL terminated array of pointers to bindings or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_GamepadBinding ** SDLCALL SDL_GetGamepadBindings(SDL_Gamepad *gamepad, int *count)

Implementation

Pointer<Pointer<SdlGamepadBinding>> getBindings(Pointer<Int32> count) {
  return sdlGetGamepadBindings(this, count);
}