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 |
a pointer to a structure containing joystick information ??? |
hat |
the hat indices index; starts at index 0 |
Return Value
The return value is 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 |
green
Code Examples
You can add your code example here
Remarks
You can add useful comments here
