Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_GameControllerButtonBind

A structure that contains info on how a logical SDL_GameController button or axis is mapped to the underlying SDL_Joystick's button/axis/hat.

Data Fields

SDL_GameControllerBindType

bindType

What kind of control this maps to (button/axis/hat/not mapped)

int

button

The SDL_Joystick button this maps to

int

axis

The SDL_Joystick axis this maps to

int

hat.hat

The SDL_Joystick hat this maps to

int

hat.hat_mask

the mask you need to binary-& with the hat's value with (this probaly corresponds to one direction of the hat)

SDL_GameControllerBindType
SDL_GameControllerGetBindForAxis
SDL_GameControllerGetBindForButton

CategoryStruct, CategoryHeader, CategoryDraft