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