Wiki Page Content

Revision 3 as of 2013-10-29 21:36:09

Clear message

DRAFT

SDL_GameControllerGetAxisFromString

Use this function to convert a string into an enum representation for a GameController axis.

Syntax

SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char* pchString)

Function Parameters

pchString

string representing a GameController axis

Return Value

Returns the GameController axis enum corresponding to the input string, or SDL_CONTROLLER_AXIS_INVALID if no match was found.

Code Examples

You can add your code example here

Remarks

This function is called internally to translate GameController mapping strings for the underlying joystick device into the consistent GameController mapping. You do not normally need to call this function unless you are parsing GameController mappings in your own code.


CategoryAPI, CategoryGameController

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