28 #ifndef _SDL_gamecontroller_h 29 #define _SDL_gamecontroller_h 127 #define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1) 245 SDL_GameControllerAxis
axis);
257 SDL_GameControllerAxis
axis);
298 SDL_GameControllerButton
button);
307 SDL_GameControllerButton
button);
int SDL_GameControllerAddMapping(const char *mappingString)
SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis)
SDL_GameControllerBindType
Uint8 SDL_GameControllerGetButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button)
char * SDL_GameControllerMapping(SDL_GameController *gamecontroller)
SDL_Joystick * SDL_GameControllerGetJoystick(SDL_GameController *gamecontroller)
void SDL_GameControllerUpdate(void)
SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char *pchString)
SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const char *pchString)
const char * SDL_GameControllerNameForIndex(int joystick_index)
SDL_GameController * SDL_GameControllerFromInstanceID(SDL_JoystickID joyid)
SDL_bool SDL_GameControllerGetAttached(SDL_GameController *gamecontroller)
uint8_t Uint8
An unsigned 8-bit integer type.
const char * SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis axis)
const char * SDL_GameControllerName(SDL_GameController *gamecontroller)
SDL_bool SDL_IsGameController(int joystick_index)
SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController *gamecontroller, SDL_GameControllerButton button)
Sint16 SDL_GameControllerGetAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis)
SDL_GameController * SDL_GameControllerOpen(int joystick_index)
void SDL_GameControllerClose(SDL_GameController *gamecontroller)
int SDL_GameControllerAddMappingsFromRW(SDL_RWops *rw, int freerw)
char * SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid)
const char * SDL_GameControllerGetStringForButton(SDL_GameControllerButton button)
int16_t Sint16
A signed 16-bit integer type.
int SDL_GameControllerEventState(int state)