Open a joystick for use.
Defined in <SDL3/SDL_joystick.h>
SDL_Joystick * SDL_OpenJoystick(SDL_JoystickID instance_id);
SDL_JoystickID | instance_id | the joystick instance ID. |
(SDL_Joystick *) Returns a joystick identifier or NULL on failure; call SDL_GetError() for more information.
The joystick subsystem must be initialized before a joystick can be opened for use.
This function is available since SDL 3.1.3.