Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2013-10-29 20:58:27
Size: 1717
Comment: Added page for SDL_GameControllerGetBindForButton() using content from headers.
Revision 2 as of 2014-09-22 18:22:17
Size: 1765
Comment: Added link to SDL_GameControllerButton.
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
||'''button'''||a button enum value|| ||'''button'''||a button enum value (one of the [[SDL_GameControllerButton]] values)||
Line 29: Line 29:
Returns a binding on success or an empty binding on failure.  Returns a binding on success or an empty binding on failure.

DRAFT

SDL_GameControllerGetBindForButton

Use this function to get the SDL joystick layer binding for this controller button mapping.

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 binding on success or an empty binding on failure.

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.


CategoryAPI, CategoryGameController

None: SDL_GameControllerGetBindForButton (last edited 2019-02-24 05:54:57 by DanielG)

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