Home | History | Annotate | Download | only in SDL

Lines Matching refs:joystick

23 /* Include file for SDL joystick event handling */
42 /* The joystick structure used to identify an SDL joystick */
54 * Get the implementation dependent name of a joystick.
61 * Open a joystick for use - the index passed as an argument refers to
62 * the N'th joystick on the system. This index is the value which will
63 * identify this joystick in future joystick events.
65 * This function returns a joystick identifier, or NULL if an error occurred.
70 * Returns 1 if the joystick has been opened, or 0 if it has not.
75 * Get the device index of an opened joystick.
77 extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick);
80 * Get the number of general axis controls on a joystick
82 extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
85 * Get the number of trackballs on a joystick
86 * Joystick trackballs have only relative motion events associated
89 extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
92 * Get the number of POV hats on a joystick
94 extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
97 * Get the number of buttons on a joystick
99 extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick);
103 * This is called automatically by the event loop if any joystick
109 * Enable/disable joystick event polling.
110 * If joystick events are disabled, you must call SDL_JoystickUpdate()
111 * yourself and check the state of the joystick when you want joystick
118 * Get the current state of an axis control on a joystick
122 extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
125 * Get the current state of a POV hat on a joystick
140 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
147 extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
150 * Get the current state of a button on a joystick
153 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
156 * Close a joystick previously opened with SDL_JoystickOpen()
158 extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);