Penguin
Blame: SDL_JoyButtonEvent(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_JoyButtonEvent(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!JoyButtonEvent
2 !!!SDL_!JoyButtonEvent
1 perry 3 NAME
4 STRUCTURE DEFINITION
5 STRUCTURE DATA
6 DESCRIPTION
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!JoyButtonEvent- Joystick button event structure
1 perry 13 !!STRUCTURE DEFINITION
14
15
16 typedef struct{
17 Uint8 type;
18 Uint8 which;
19 Uint8 button;
20 Uint8 state;
2 perry 21 } SDL_!JoyButtonEvent;
1 perry 22 !!STRUCTURE DATA
23
24
25 __type SDL_JOYBUTTONDOWN__ or
26 __SDL_JOYBUTTONUP__
27
28
29 __which__ Joystick device index
30
31
32 __button__ Joystick button index
33
34
35 __state SDL_PRESSED__ or __SDL_RELEASED__
36 !!DESCRIPTION
37
38
2 perry 39 __SDL_!JoyButtonEvent__ is a member of the
1 perry 40 __SDL_Event__ union and is used when an event of type
41 __SDL_JOYBUTTONDOWN__ or __SDL_JOYBUTTONUP__ is
42 reported.
43
44
45 A __SDL_JOYBUTTONDOWN__ or __SDL_JOYBUTTONUP__ event
46 occurs when ever a user presses or releases a button on a
47 joystick. The field __which__ is the index of the
48 joystick that reported the event and __button__ is the
49 index of the button (for a more detailed explaination see
50 the ''Joystick section''). __state__ is the current
51 state or the button which is either __SDL_PRESSED__ or
52 __SDL_RELEASED__.
53 !!SEE ALSO
54
55
56 __SDL_Event__, ''Joystick Functions'',
2 perry 57 __SDL_!JoystickEventState__,
58 __SDL_!JoystickGetButton__
1 perry 59 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.