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.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.