SDL_JoystickOpen?
NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO
SDL_JoystickOpen?- Opens a joystick for use.
#include
SDL_Joystick *SDL_JoystickOpen?(int index);
Opens a joystick for use within SDL. The index refers to the N'th joystick in the system. A joystick must be opened before it game be used.
Returns a SDL_Joystick structure on success. NULL on failure.
SDL_Joystick *joy; // Check for joystick if(SDL_NumJoysticks?()
SDL_JoystickClose?
One page links to SDL_JoystickOpen(3):