|
Size: 1665
Comment: Really changed description to lowercase.
|
Size: 1648
Comment: Added to Related Functions.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 40: | Line 40: |
| ##== Related Functions == ## .[[SDL_OtherFunction]] ##Remove this section if empty |
== Related Functions == .[[SDL_GameControllerGetStringForAxis]] |
DRAFT |
SDL_GameControllerGetAxisFromString
Use this function to convert a string into an enum representation for a GameController axis.
Contents
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.
