|
Size: 1648
Comment: Added to Related Functions.
|
← Revision 5 as of 2014-09-22 18:11:40 ⇥
Size: 1683
Comment: Added links to SDL_GameControllerAxis and fixed camel case links.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 8: | Line 8: |
| Use this function to convert a string into an enum representation for a GameController axis. | Use this function to convert a string into an enum representation for an [[SDL_GameControllerAxis]]. |
| Line 21: | Line 21: |
| ||'''pchString'''||string representing a GameController axis|| | ||'''pchString'''||string representing a SDL_!GameController axis|| |
| Line 25: | Line 25: |
| Returns the GameController axis enum corresponding to the input string, or SDL_CONTROLLER_AXIS_INVALID if no match was found. | Returns the [[SDL_GameControllerAxis]] enum corresponding to the input string, or SDL_CONTROLLER_AXIS_INVALID if no match was found. |
| Line 37: | Line 37: |
| 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. | 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. |
DRAFT |
SDL_GameControllerGetAxisFromString
Use this function to convert a string into an enum representation for an SDL_GameControllerAxis.
Contents
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.
