| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package SDL2::Event { |
|
2
|
2
|
|
|
2
|
|
15
|
use SDL2::Utils; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
17
|
|
|
3
|
2
|
|
|
2
|
|
2222
|
use FFI::C::UnionDef; |
|
|
2
|
|
|
|
|
2228
|
|
|
|
2
|
|
|
|
|
67
|
|
|
4
|
2
|
|
|
2
|
|
787
|
use SDL2::CommonEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
90
|
|
|
5
|
2
|
|
|
2
|
|
859
|
use SDL2::DisplayEvent; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
107
|
|
|
6
|
2
|
|
|
2
|
|
1011
|
use SDL2::KeyboardEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
125
|
|
|
7
|
2
|
|
|
2
|
|
948
|
use SDL2::MouseButtonEvent; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
128
|
|
|
8
|
2
|
|
|
2
|
|
959
|
use SDL2::MouseMotionEvent; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
116
|
|
|
9
|
2
|
|
|
2
|
|
953
|
use SDL2::MouseWheelEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
99
|
|
|
10
|
2
|
|
|
2
|
|
910
|
use SDL2::JoyAxisEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
108
|
|
|
11
|
2
|
|
|
2
|
|
958
|
use SDL2::JoyBallEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
112
|
|
|
12
|
2
|
|
|
2
|
|
1023
|
use SDL2::JoyHatEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
111
|
|
|
13
|
2
|
|
|
2
|
|
935
|
use SDL2::JoyButtonEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
101
|
|
|
14
|
2
|
|
|
2
|
|
943
|
use SDL2::JoyDeviceEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
102
|
|
|
15
|
2
|
|
|
2
|
|
878
|
use SDL2::ControllerAxisEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
110
|
|
|
16
|
2
|
|
|
2
|
|
931
|
use SDL2::ControllerButtonEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
106
|
|
|
17
|
2
|
|
|
2
|
|
958
|
use SDL2::ControllerDeviceEvent; |
|
|
2
|
|
|
|
|
16
|
|
|
|
2
|
|
|
|
|
100
|
|
|
18
|
2
|
|
|
2
|
|
1030
|
use SDL2::AudioDeviceEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
93
|
|
|
19
|
2
|
|
|
2
|
|
971
|
use SDL2::TouchFingerEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
106
|
|
|
20
|
2
|
|
|
2
|
|
984
|
use SDL2::TextEditingEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
120
|
|
|
21
|
2
|
|
|
2
|
|
937
|
use SDL2::TextInputEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
105
|
|
|
22
|
2
|
|
|
2
|
|
935
|
use SDL2::MultiGestureEvent; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
111
|
|
|
23
|
2
|
|
|
2
|
|
1010
|
use SDL2::DollarGestureEvent; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
84
|
|
|
24
|
2
|
|
|
2
|
|
900
|
use SDL2::DropEvent; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
70
|
|
|
25
|
2
|
|
|
2
|
|
729
|
use SDL2::SensorEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
66
|
|
|
26
|
2
|
|
|
2
|
|
767
|
use SDL2::QuitEvent; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
73
|
|
|
27
|
2
|
|
|
2
|
|
746
|
use SDL2::UserEvent; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
83
|
|
|
28
|
2
|
|
|
2
|
|
1076
|
use SDL2::SysWMEvent; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
71
|
|
|
29
|
2
|
|
|
2
|
|
704
|
use SDL2::WindowEvent; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
246
|
|
|
30
|
|
|
|
|
|
|
FFI::C::UnionDef->new( ffi, |
|
31
|
|
|
|
|
|
|
name => 'SDL_Event', |
|
32
|
|
|
|
|
|
|
class => 'SDL2::Event', |
|
33
|
|
|
|
|
|
|
members => [ |
|
34
|
|
|
|
|
|
|
type => 'uint32', |
|
35
|
|
|
|
|
|
|
common => 'SDL_CommonEvent', |
|
36
|
|
|
|
|
|
|
display => 'SDL_DisplayEvent', |
|
37
|
|
|
|
|
|
|
window => 'SDL_WindowEvent', |
|
38
|
|
|
|
|
|
|
key => 'SDL_KeyboardEvent', |
|
39
|
|
|
|
|
|
|
edit => 'SDL_TextEditingEvent', |
|
40
|
|
|
|
|
|
|
text => 'SDL_TextInputEvent', |
|
41
|
|
|
|
|
|
|
motion => 'SDL_MouseMotionEvent', |
|
42
|
|
|
|
|
|
|
button => 'SDL_MouseButtonEvent', |
|
43
|
|
|
|
|
|
|
wheel => 'SDL_MouseWheelEvent', |
|
44
|
|
|
|
|
|
|
jaxis => 'SDL_JoyAxisEvent', |
|
45
|
|
|
|
|
|
|
jball => 'SDL_JoyBallEvent', |
|
46
|
|
|
|
|
|
|
jhat => 'SDL_JoyHatEvent', |
|
47
|
|
|
|
|
|
|
jbutton => 'SDL_JoyButtonEvent', |
|
48
|
|
|
|
|
|
|
jdevice => 'SDL_JoyDeviceEvent', |
|
49
|
|
|
|
|
|
|
caxis => 'SDL_ControllerAxisEvent', |
|
50
|
|
|
|
|
|
|
cbutton => 'SDL_ControllerButtonEvent', |
|
51
|
|
|
|
|
|
|
cdevice => 'SDL_ControllerDeviceEvent', |
|
52
|
|
|
|
|
|
|
adevice => 'SDL_AudioDeviceEvent', |
|
53
|
|
|
|
|
|
|
sensor => 'SDL_SensorEvent', |
|
54
|
|
|
|
|
|
|
quit => 'SDL_QuitEvent', |
|
55
|
|
|
|
|
|
|
user => 'SDL_UserEvent', |
|
56
|
|
|
|
|
|
|
syswm => 'SDL_SysWMEvent', |
|
57
|
|
|
|
|
|
|
tfinger => 'SDL_TouchFingerEvent', |
|
58
|
|
|
|
|
|
|
mgesture => 'SDL_MultiGestureEvent', |
|
59
|
|
|
|
|
|
|
dgesture => 'SDL_DollarGestureEvent', |
|
60
|
|
|
|
|
|
|
drop => 'SDL_DropEvent', |
|
61
|
|
|
|
|
|
|
padding => 'uint8[56]' |
|
62
|
|
|
|
|
|
|
] |
|
63
|
|
|
|
|
|
|
); |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=encoding utf-8 |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 NAME |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
SDL2::Event - General event structure |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
use SDL2 qw[:all]; |
|
74
|
|
|
|
|
|
|
# TODO: I need to whip up a quick example |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
SDL2::Event is a C union which generalizes all known SDL2 events. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 Fields |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
As a union, this object main contain the following structures: |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=over |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item C - Event type, shared with all events |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item C - SDL2::CommonEvent |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item C - SDL2::DisplayEvent |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item C - SDL2::WindowEvent |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item C - SDL2::KeyboardEvent |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item C - SDL2::TextEditingEvent |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item C - SDL2::TextInputEvent |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item C - SDL2::MouseMotionEvent |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item C |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=item C - SDL2::MouseWheelEvent |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item C - SDL2::JoyAxisEvent |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=item C - SDL2::JoyBallEvent |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=item C - SDL2::JoyHatEvent |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=item C - SDL2::JoyButtonEvent |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=item C - SDL2::JoyDeviceEvent |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=item C - SDL2::ControllerAxisEvent |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item C - SDL2::ControllerButtonEvent |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=item C - SDL2::ControllerDeviceEvent |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=item C - SDL2::AudioDeviceEvent |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=item C - SDL2::SensorEvent |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item C - SDL2::QuitEvent |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=item C - SDL2::UserEvent |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=item C - SDL2::SysWMEvent |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=item C - SDL2::TouchFingerEvent |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=item C - SDL2::MultiGestureEvent |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=item C - SDL2::DollarGestureEvent |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=item C - SDL2::DropEvent |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=item C - Raw data used internally to protect ABI compatibility between VC++ and GCC |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=back |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head1 AUTHOR |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=begin stopwords |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=end stopwords |
|
152
|
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=cut |
|
154
|
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
}; |
|
156
|
|
|
|
|
|
|
1; |