Penguin
 
SDL_Joystick Open(3)
LikePages

SDL_!JoystickOpen

SDL_!JoystickOpen

NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO


NAME

SDL_!JoystickOpen- Opens a joystick for use.

SYNOPSIS

#include

SDL_Joystick *SDL_!JoystickOpen(int index);

DESCRIPTION

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.

RETURN VALUE

Returns a SDL_Joystick structure on success. NULL on failure.

EXAMPLES

SDL_Joystick *joy; // Check for joystick if(SDL_!NumJoysticks()

SEE ALSO

SDL_!JoystickClose


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.