|
Size: 1829
Comment: link SDL_GameControllerButtonBind struct
|
← Revision 4 as of 2019-02-24 05:54:57 ⇥
Size: 1970
Comment: improve return value description
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 29: | Line 29: |
| Returns a binding on success or an empty binding on failure. | Returns a [[SDL_GameControllerButtonBind]] describing the bind.<<BR>> On failure (like the given Controller button doesn't exist on the device), its `.bindType` will be `SDL_CONTROLLER_BINDTYPE_NONE`. |
DRAFT |
SDL_GameControllerGetBindForButton
Use this function to get the SDL joystick layer binding for this controller button mapping.
Contents
Syntax
SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController* gamecontroller,
SDL_GameControllerButton button)
Function Parameters
gamecontroller |
a game controller |
button |
a button enum value (one of the SDL_GameControllerButton values) |
Return Value
Returns a SDL_GameControllerButtonBind describing the bind.
On failure (like the given Controller button doesn't exist on the device), its .bindType will be SDL_CONTROLLER_BINDTYPE_NONE.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.0.
Related Structures
