Home | History | Annotate | Download | only in man3
"SDL_JoystickGetHat" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
"NAME"
SDL_JoystickGetHat - Get the current state of a joystick hat
"SYNOPSIS"

#include "SDL.h" Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);

"DESCRIPTION"

SDL_JoystickGetHat returns the current state of the given hat on the given joystick.

"RETURN VALUE"

The current state is returned as a Uint8 which is defined as an OR'd combination of one or more of the following

"" 10
SDL_HAT_CENTERED
"" 10
SDL_HAT_UP
"" 10
SDL_HAT_RIGHT
"" 10
SDL_HAT_DOWN
"" 10
SDL_HAT_LEFT
"" 10
SDL_HAT_RIGHTUP
"" 10
SDL_HAT_RIGHTDOWN
"" 10
SDL_HAT_LEFTUP
"" 10
SDL_HAT_LEFTDOWN
"SEE ALSO"

SDL_JoystickNumHats created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00