#include "SDL_stdinc.h"#include "SDL_error.h"#include "begin_code.h"#include "close_code.h"Go to the source code of this file.
Defines | |
| #define | SDL_HAT_CENTERED 0x00 |
| #define | SDL_HAT_UP 0x01 |
| #define | SDL_HAT_RIGHT 0x02 |
| #define | SDL_HAT_DOWN 0x04 |
| #define | SDL_HAT_LEFT 0x08 |
| #define | SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP) |
| #define | SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN) |
| #define | SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP) |
| #define | SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN) |
Typedefs | |
| typedef struct _SDL_Joystick | SDL_Joystick |
Functions | |
| DECLSPEC int SDLCALL | SDL_NumJoysticks (void) |
| DECLSPEC const char *SDLCALL | SDL_JoystickName (int device_index) |
| DECLSPEC SDL_Joystick *SDLCALL | SDL_JoystickOpen (int device_index) |
| DECLSPEC int SDLCALL | SDL_JoystickOpened (int device_index) |
| DECLSPEC int SDLCALL | SDL_JoystickIndex (SDL_Joystick *joystick) |
| DECLSPEC int SDLCALL | SDL_JoystickNumAxes (SDL_Joystick *joystick) |
| DECLSPEC int SDLCALL | SDL_JoystickNumBalls (SDL_Joystick *joystick) |
| DECLSPEC int SDLCALL | SDL_JoystickNumHats (SDL_Joystick *joystick) |
| DECLSPEC int SDLCALL | SDL_JoystickNumButtons (SDL_Joystick *joystick) |
| DECLSPEC void SDLCALL | SDL_JoystickUpdate (void) |
| DECLSPEC int SDLCALL | SDL_JoystickEventState (int state) |
| DECLSPEC Sint16 SDLCALL | SDL_JoystickGetAxis (SDL_Joystick *joystick, int axis) |
| DECLSPEC Uint8 SDLCALL | SDL_JoystickGetHat (SDL_Joystick *joystick, int hat) |
| DECLSPEC int SDLCALL | SDL_JoystickGetBall (SDL_Joystick *joystick, int ball, int *dx, int *dy) |
| DECLSPEC Uint8 SDLCALL | SDL_JoystickGetButton (SDL_Joystick *joystick, int button) |
| DECLSPEC void SDLCALL | SDL_JoystickClose (SDL_Joystick *joystick) |
1.5.8