SDL_JoystickGetHat
Get the current state of a joystick hat
- Provided by: libsdl1.2-dev (Version: 1.2.15+dfsg2-5)
- Source: libsdl1.2
- Report a bug
Get the current state of a joystick hat
#include "SDL.h"
Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
SDL_JoystickGetHat returns the current state of the given hat on the given joystick.
The current state is returned as a Uint8 which is defined as an OR'd combination of one or more of the following
SDL_JoystickNumHats