Penguin
Blame: SDL_JoyHatEvent(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_JoyHatEvent(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!JoyHatEvent
2 !!!SDL_!JoyHatEvent
1 perry 3 NAME
4 STRUCTURE DEFINITION
5 STRUCTURE DATA
6 DESCRIPTION
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!JoyHatEvent- Joystick hat position change event structure
1 perry 13 !!STRUCTURE DEFINITION
14
15
16 typedef struct{
17 Uint8 type;
18 Uint8 which;
19 Uint8 hat;
20 Uint8 value;
2 perry 21 } SDL_!JoyHatEvent;
1 perry 22 !!STRUCTURE DATA
23
24
25 __type SDL_JOY__
26
27
28 __which__ Joystick device index
29
30
31 __hat__ Joystick hat index
32
33
34 __value__ Hat position
35 !!DESCRIPTION
36
37
2 perry 38 __SDL_!JoyHatEvent__ is a member of the __SDL_Event__
1 perry 39 union and is used when an event of type
40 __SDL_JOYHATMOTION__ is reported.
41
42
43 A __SDL_JOYHATMOTION__ event occurs when ever a user
44 moves a hat on the joystick. The field __which__ is the
45 index of the joystick that reported the event and __hat__
46 is the index of the hat (for a more detailed exlaination see
47 the ''Joystick section''). __value__ is the current
48 position of the hat. It is a logically OR'd combination of
49 the following values (whose meanings should be pretty
50 obvious:) :
51
52
53 __SDL_HAT_CENTERED__
54
55
56 __SDL_HAT_UP__
57
58
59 __SDL_HAT_RIGHT__
60
61
62 __SDL_HAT_DOWN__
63
64
65 __SDL_HAT_LEFT__
66
67
68 The following defines are also provided:
69
70
71 __SDL_HAT_RIGHTUP__
72
73
74 __SDL_HAT_RIGHTDOWN__
75
76
77 __SDL_HAT_LEFTUP__
78
79
80 __SDL_HAT_LEFTDOWN__
81 !!SEE ALSO
82
83
84 __SDL_Event__, ''Joystick Functions'',
2 perry 85 __SDL_!JoystickEventState__,
86 __SDL_!JoystickGetHat__
1 perry 87 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.