gets static method

Pointer<Uint32> gets(
  1. Pointer<Int32> count
)

Get a list of currently connected gamepads.

\param count a pointer filled in with the number of gamepads returned, may be NULL. \returns a 0 terminated array of joystick instance IDs or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.

\since This function is available since SDL 3.1.3.

\sa SDL_HasGamepad \sa SDL_OpenGamepad

extern SDL_DECLSPEC SDL_JoystickID * SDLCALL SDL_GetGamepads(int *count)

Implementation

static Pointer<Uint32> gets(Pointer<Int32> count) {
  return sdlGetGamepads(count);
}