Open a joystick for use.
SDL_Joystick* SDL_OpenJoystick(SDL_JoystickID instance_id);
instance_id | the joystick instance ID |
Returns a joystick identifier or NULL if an error occurred; 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.0.0.