#pragma section-numbers off #pragma camelcase off || DRAFT|| ##*^*^*^*^*See http://wiki.libsdl.org/moin.cgi/SGStructures for details on editing this page*^*^*^*^* = 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_JoystickGetButton|SDL_Joystick button]] this maps to|| ||int||'''axis'''||The [[SDL_JoystickGetAxis|SDL_Joystick axis]] this maps to|| ||int||'''hat.hat'''||The [[SDL_JoystickGetHat|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 == {{{#!highlight cpp You can add your code example here }}} ##Leave this section as-is unless you have a code example to put in. In that case, replace You can add your code example here with your code example following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Remarks == ''You can add useful comments here'' ##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Related Enumerations == .[[SDL_GameControllerBindType]] == Related Functions == .[[SDL_GameControllerGetBindForAxis]] .[[SDL_GameControllerGetBindForButton]] ---- [[CategoryStruct]], [[CategoryHeader]] ##See the Style Guide for instructions on editing the footer. ---- CategoryGameController