1SDL_JoystickGetHat(3) SDL API Reference SDL_JoystickGetHat(3)
2
3
4
6 SDL_JoystickGetHat - Get the current state of a joystick hat
7
9 #include "SDL.h"
10
11 Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
12
14 SDL_JoystickGetHat returns the current state of the given hat on the
15 given joystick.
16
18 The current state is returned as a Uint8 which is defined as an OR'd
19 combination of one or more of the following
20
21 SDL_HAT_CENTERED
22
23 SDL_HAT_UP
24
25 SDL_HAT_RIGHT
26
27 SDL_HAT_DOWN
28
29 SDL_HAT_LEFT
30
31 SDL_HAT_RIGHTUP
32
33 SDL_HAT_RIGHTDOWN
34
35 SDL_HAT_LEFTUP
36
37 SDL_HAT_LEFTDOWN
38
40 SDL_JoystickNumHats
41
42
43
44SDL Tue 11 Sep 2001, 23:00 SDL_JoystickGetHat(3)