Annotated edit history of
SDL_MouseButtonEvent(3) version 2, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
2 |
perry |
1 |
SDL_!MouseButtonEvent |
|
|
2 |
!!!SDL_!MouseButtonEvent |
1 |
perry |
3 |
NAME |
|
|
4 |
STRUCTURE DEFINITION |
|
|
5 |
STRUCTURE DATA |
|
|
6 |
DESCRIPTION |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
2 |
perry |
12 |
SDL_!MouseButtonEvent- Mouse button event structure |
1 |
perry |
13 |
!!STRUCTURE DEFINITION |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
typedef struct{ |
|
|
17 |
Uint8 type; |
|
|
18 |
Uint8 button; |
|
|
19 |
Uint8 state; |
|
|
20 |
Uint16 x, y; |
2 |
perry |
21 |
} SDL_!MouseButtonEvent; |
1 |
perry |
22 |
!!STRUCTURE DATA |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__type SDL_MOUSEBUTTONDOWN__ or |
|
|
26 |
__SDL_MOUSEBUTTONUP__ |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__button__ The mouse button index (SDL_BUTTON_LEFT, |
|
|
30 |
SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT) |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__state SDL_PRESSED__ or __SDL_RELEASED__ |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
__x__, __y__ The X/Y coordinates of the mouse at |
|
|
37 |
press/release time |
|
|
38 |
!!DESCRIPTION |
|
|
39 |
|
|
|
40 |
|
2 |
perry |
41 |
__SDL_!MouseButtonEvent__ is a member of the |
1 |
perry |
42 |
__SDL_Event__ union and is used when an event of type |
|
|
43 |
__SDL_MOUSEBUTTONDOWN__ or __SDL_MOUSEBUTTONUP__ is |
|
|
44 |
reported. |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
When a mouse button press or release is detected then number |
|
|
48 |
of the button pressed (from 1 to 255, with 1 usually being |
|
|
49 |
the left button and 2 the right) is placed into |
|
|
50 |
__button__, the position of the mouse when this event |
|
|
51 |
occured is stored in the __x__ and the __y__ fields. |
2 |
perry |
52 |
Like __SDL_!KeyboardEvent__, information on whether the |
1 |
perry |
53 |
event was a press or a release event is stored in both the |
|
|
54 |
__type__ and __state__ fields, but this should be |
|
|
55 |
obvious. |
|
|
56 |
!!SEE ALSO |
|
|
57 |
|
|
|
58 |
|
2 |
perry |
59 |
__SDL_Event__, __SDL_!MouseMotionEvent__ |
1 |
perry |
60 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.