Lines Matching refs:joystick

24  *  Include file for SDL joystick event handling
45 /** The joystick structure used to identify an SDL joystick */
56 * Get the implementation dependent name of a joystick.
64 * Open a joystick for use.
68 * the N'th joystick on the system. This index is the value which will
69 * identify this joystick in future joystick events.
71 * @return This function returns a joystick identifier, or NULL if an error occurred.
76 * Returns 1 if the joystick has been opened, or 0 if it has not.
81 * Get the device index of an opened joystick.
83 extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick);
86 * Get the number of general axis controls on a joystick
88 extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
91 * Get the number of trackballs on a joystick
96 extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
99 * Get the number of POV hats on a joystick
101 extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
104 * Get the number of buttons on a joystick
106 extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick);
111 * This is called automatically by the event loop if any joystick
117 * Enable/disable joystick event polling.
119 * If joystick events are disabled, you must call SDL_JoystickUpdate()
120 * yourself and check the state of the joystick when you want joystick
128 * Get the current state of an axis control on a joystick
134 extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
153 * Get the current state of a POV hat on a joystick
157 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
166 extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
169 * Get the current state of a button on a joystick
173 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
176 * Close a joystick previously opened with SDL_JoystickOpen()
178 extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);