World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
28 #ifndef SDL_gamecontroller_h_
29 #define SDL_gamecontroller_h_
57 struct _SDL_GameController;
138 #define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)
339 extern DECLSPEC
Sint16 SDLCALL
DECLSPEC SDL_GameControllerButtonBind SDLCALL SDL_GameControllerGetBindForAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis)
@ SDL_CONTROLLER_BUTTON_DPAD_LEFT
DECLSPEC void SDLCALL SDL_GameControllerClose(SDL_GameController *gamecontroller)
DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops *rw, int freerw)
struct SDL_GameControllerButtonBind SDL_GameControllerButtonBind
@ SDL_CONTROLLER_AXIS_RIGHTX
DECLSPEC int SDLCALL SDL_GameControllerGetPlayerIndex(SDL_GameController *gamecontroller)
DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerOpen(int joystick_index)
DECLSPEC int SDLCALL SDL_GameControllerAddMapping(const char *mappingString)
@ SDL_CONTROLLER_BUTTON_INVALID
DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index)
@ SDL_CONTROLLER_BINDTYPE_NONE
@ SDL_CONTROLLER_TYPE_UNKNOWN
DECLSPEC char *SDLCALL SDL_GameControllerMapping(SDL_GameController *gamecontroller)
DECLSPEC char *SDLCALL SDL_GameControllerMappingForIndex(int mapping_index)
struct _SDL_GameController SDL_GameController
struct _SDL_Joystick SDL_Joystick
@ SDL_CONTROLLER_BUTTON_RIGHTSTICK
DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProductVersion(SDL_GameController *gamecontroller)
@ SDL_CONTROLLER_AXIS_LEFTX
DECLSPEC int SDLCALL SDL_GameControllerNumMappings(void)
const DECLSPEC char *SDLCALL SDL_GameControllerName(SDL_GameController *gamecontroller)
@ SDL_CONTROLLER_BUTTON_B
@ SDL_CONTROLLER_BUTTON_MAX
const DECLSPEC char *SDLCALL SDL_GameControllerGetStringForButton(SDL_GameControllerButton button)
DECLSPEC char *SDLCALL SDL_GameControllerMappingForDeviceIndex(int joystick_index)
@ SDL_CONTROLLER_BUTTON_BACK
@ SDL_CONTROLLER_TYPE_PS3
@ SDL_CONTROLLER_BINDTYPE_BUTTON
DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromInstanceID(SDL_JoystickID joyid)
@ SDL_CONTROLLER_BUTTON_LEFTSHOULDER
DECLSPEC int SDLCALL SDL_GameControllerEventState(int state)
DECLSPEC int SDLCALL SDL_GameControllerRumble(SDL_GameController *gamecontroller, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
const DECLSPEC char *SDLCALL SDL_GameControllerNameForIndex(int joystick_index)
DECLSPEC SDL_GameControllerButton SDLCALL SDL_GameControllerGetButtonFromString(const char *pchString)
SDL_GameControllerBindType
@ SDL_CONTROLLER_TYPE_PS4
@ SDL_CONTROLLER_AXIS_TRIGGERLEFT
DECLSPEC SDL_Joystick *SDLCALL SDL_GameControllerGetJoystick(SDL_GameController *gamecontroller)
@ SDL_CONTROLLER_AXIS_INVALID
DECLSPEC char *SDLCALL SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid)
DECLSPEC Uint8 SDLCALL SDL_GameControllerGetButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button)
@ SDL_CONTROLLER_AXIS_MAX
DECLSPEC void SDLCALL SDL_GameControllerSetPlayerIndex(SDL_GameController *gamecontroller, int player_index)
DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromPlayerIndex(int player_index)
const DECLSPEC char *SDLCALL SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis axis)
@ SDL_CONTROLLER_BUTTON_START
DECLSPEC Uint16 SDLCALL SDL_GameControllerGetVendor(SDL_GameController *gamecontroller)
DECLSPEC SDL_GameControllerType SDLCALL SDL_GameControllerGetType(SDL_GameController *gamecontroller)
DECLSPEC SDL_GameControllerType SDLCALL SDL_GameControllerTypeForIndex(int joystick_index)
DECLSPEC Sint16 SDLCALL SDL_GameControllerGetAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis)
@ SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
@ SDL_CONTROLLER_BINDTYPE_HAT
DECLSPEC SDL_bool SDLCALL SDL_GameControllerGetAttached(SDL_GameController *gamecontroller)
@ SDL_CONTROLLER_BUTTON_Y
@ SDL_CONTROLLER_BINDTYPE_AXIS
DECLSPEC SDL_GameControllerAxis SDLCALL SDL_GameControllerGetAxisFromString(const char *pchString)
DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProduct(SDL_GameController *gamecontroller)
@ SDL_CONTROLLER_AXIS_LEFTY
@ SDL_CONTROLLER_BUTTON_LEFTSTICK
DECLSPEC SDL_GameControllerButtonBind SDLCALL SDL_GameControllerGetBindForButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button)
@ SDL_CONTROLLER_TYPE_XBOX360
@ SDL_CONTROLLER_BUTTON_DPAD_DOWN
@ SDL_CONTROLLER_BUTTON_DPAD_UP
@ SDL_CONTROLLER_AXIS_TRIGGERRIGHT
@ SDL_CONTROLLER_AXIS_RIGHTY
@ SDL_CONTROLLER_BUTTON_X
@ SDL_CONTROLLER_BUTTON_A
@ SDL_CONTROLLER_TYPE_XBOXONE
@ SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO
@ SDL_CONTROLLER_BUTTON_DPAD_RIGHT
DECLSPEC void SDLCALL SDL_GameControllerUpdate(void)
@ SDL_CONTROLLER_BUTTON_GUIDE