Penguin
Note: You are viewing an old revision of this page. View the current version.

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.