SDL_OpenJoystick3
Open a joystick for use.
Usage
#include "SDL3/SDL.h"
SDL_Joystick * SDL_OpenJoystick(SDL_JoystickID instance_id);
Header file
Defined in SDL3/SDL_joystick.h
Overview
The joystick subsystem must be initialized before a joystick can be opened for use.
Function parameters
- instance_id
-
the joystick instance ID.
Return value
( SDL_Joystick
*) Returns a joystick identifier or NULL on failure; call SDL_GetError () for more information.