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):