Wiki Page Content

DRAFT

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)

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryStruct, CategoryHeader


CategoryGameController

None: SDL_GameControllerButtonBind (last edited 2019-02-24 05:03:30 by DanielG)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit