Open a gamepad for use.
Defined in <SDL3/SDL_gamepad.h>
SDL_Gamepad * SDL_OpenGamepad(SDL_JoystickID instance_id);
SDL_JoystickID | instance_id | the joystick instance ID. |
(SDL_Gamepad *) Returns a gamepad identifier or NULL if an error occurred; call SDL_GetError() for more information.
This function is available since SDL 3.1.3.