Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2013-10-17 21:01:51
Size: 1665
Comment: Removed unrelated CategoryInput, changed description to lowercase.
Revision 3 as of 2013-10-29 21:36:09
Size: 1665
Comment: Really changed description to lowercase.
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
||'''pchString'''||String representing a GameController axis|| ||'''pchString'''||string representing a GameController axis||

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

None: SDL_GameControllerGetAxisFromString (last edited 2014-09-22 18:11:40 by PhilippWiesemann)

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