World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
39 #ifndef SDL_joystick_h_
40 #define SDL_joystick_h_
311 #define SDL_JOYSTICK_AXIS_MAX 32767
312 #define SDL_JOYSTICK_AXIS_MIN -32768
339 #define SDL_HAT_CENTERED 0x00
340 #define SDL_HAT_UP 0x01
341 #define SDL_HAT_RIGHT 0x02
342 #define SDL_HAT_DOWN 0x04
343 #define SDL_HAT_LEFT 0x08
344 #define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP)
345 #define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)
346 #define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)
347 #define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN)
377 int ball,
int *dx,
int *dy);
@ SDL_JOYSTICK_TYPE_GAMECONTROLLER
DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickGetDeviceInstanceID(int device_index)
DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetType(SDL_Joystick *joystick)
DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID)
DECLSPEC Uint16 SDLCALL SDL_JoystickGetVendor(SDL_Joystick *joystick)
DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen(int device_index)
DECLSPEC int SDLCALL SDL_NumJoysticks(void)
DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceVendor(int device_index)
struct _SDL_Joystick SDL_Joystick
DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProductVersion(int device_index)
DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProduct(int device_index)
@ SDL_JOYSTICK_TYPE_GUITAR
DECLSPEC Uint16 SDLCALL SDL_JoystickGetProduct(SDL_Joystick *joystick)
DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick)
@ SDL_JOYSTICK_POWER_EMPTY
DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUID(SDL_Joystick *joystick)
DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromInstanceID(SDL_JoystickID instance_id)
DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL_Joystick *joystick)
@ SDL_JOYSTICK_TYPE_DANCE_PAD
DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy)
DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick *joystick)
@ SDL_JOYSTICK_TYPE_DRUM_KIT
DECLSPEC int SDLCALL SDL_JoystickRumble(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
@ SDL_JOYSTICK_POWER_MEDIUM
@ SDL_JOYSTICK_POWER_UNKNOWN
@ SDL_JOYSTICK_TYPE_FLIGHT_STICK
@ SDL_JOYSTICK_POWER_WIRED
DECLSPEC void SDLCALL SDL_LockJoysticks(void)
@ SDL_JOYSTICK_TYPE_THROTTLE
DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick)
DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick *joystick)
DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetDeviceGUID(int device_index)
DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis)
DECLSPEC void SDLCALL SDL_JoystickSetPlayerIndex(SDL_Joystick *joystick, int player_index)
DECLSPEC int SDLCALL SDL_JoystickGetPlayerIndex(SDL_Joystick *joystick)
DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const char *pchGUID)
DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat)
DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick)
DECLSPEC int SDLCALL SDL_JoystickEventState(int state)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
@ SDL_JOYSTICK_POWER_FULL
@ SDL_JOYSTICK_TYPE_ARCADE_PAD
DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick *joystick)
DECLSPEC void SDLCALL SDL_UnlockJoysticks(void)
const DECLSPEC char *SDLCALL SDL_JoystickName(SDL_Joystick *joystick)
DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick)
const DECLSPEC char *SDLCALL SDL_JoystickNameForIndex(int device_index)
DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick)
DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button)
DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAxisInitialState(SDL_Joystick *joystick, int axis, Sint16 *state)
@ SDL_JOYSTICK_TYPE_WHEEL
DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromPlayerIndex(int player_index)
DECLSPEC void SDLCALL SDL_JoystickUpdate(void)
@ SDL_JOYSTICK_TYPE_UNKNOWN
DECLSPEC int SDLCALL SDL_JoystickGetDevicePlayerIndex(int device_index)
@ SDL_JOYSTICK_TYPE_ARCADE_STICK
DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetDeviceType(int device_index)