![]() |
![]()
| ![]() |
![]()
NAMESDL_JoystickOpen - Opens a joystick for use. SYNOPSIS#include "SDL.h" SDL_Joystick *SDL_JoystickOpen(int index); DESCRIPTIONOpens 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 VALUEReturns a SDL_Joystick structure on success. NULL on failure. EXAMPLESSDL_Joystick *joy; // Check for joystick if(SDL_NumJoysticks()>0){ SEE ALSOSDL_JoystickClose
|