|
Size: 1475
Comment: Hid green comments in comments.
|
Size: 1488
Comment: Removed old formatting and corrected description.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 18: | Line 18: |
| ||'''hat'''||the hat ,,indices,, ^index;^ start^s^ at index 0|| | ||'''hat'''||the hat index to get the state from; hat indices start at index 0|| |
| Line 22: | Line 22: |
| Returns one of the following ,,positions,,: | Returns one of the following positions: |
DRAFT |
SDL_JoystickGetHat
Use this function to get the current state of a POV hat on a joystick.
Contents
Syntax
Uint8 SDL_JoystickGetHat(SDL_Joystick* joystick,
int hat)
Function Parameters
joystick |
an SDL_Joystick structure containing joystick information ??? |
hat |
the hat index to get the state from; hat indices start at index 0 |
Return Value
Returns one of the following positions:
SDL_HAT_CENTERED |
SDL_HAT_UP |
SDL_HAT_RIGHT |
SDL_HAT_DOWN |
SDL_HAT_LEFT |
SDL_HAT_RIGHTUP |
SDL_HAT_RIGHTDOWN |
SDL_HAT_LEFTUP |
SDL_HAT_LEFTDOWN |
SDL_HAT_LEFTUP |
SDL_HAT_UP |
SDL_HAT_RIGHTUP |
SDL_HAT_LEFT |
SDL_HAT_CENTERED |
SDL_HAT_RIGHT |
SDL_HAT_LEFTDOWN |
SDL_HAT_DOWN |
SDL_HAT_RIGHTDOWN |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
