Wiki Page Content

DRAFT

SDL_GameControllerGetAxisFromString

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

Syntax

SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char* pchString)

Function Parameters

pchString

string representing a SDL_GameController axis

Return Value

Returns the SDL_GameControllerAxis 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 SDL_GameController mapping strings for the underlying joystick device into the consistent SDL_GameController mapping. You do not normally need to call this function unless you are parsing SDL_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