line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SDL2::MouseButtonEvent { |
2
|
2
|
|
|
2
|
|
16
|
use SDL2::Utils; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
17
|
|
3
|
|
|
|
|
|
|
has |
4
|
|
|
|
|
|
|
type => 'uint32', |
5
|
|
|
|
|
|
|
timestamp => 'uint32', |
6
|
|
|
|
|
|
|
windowID => 'uint32', |
7
|
|
|
|
|
|
|
which => 'uint32', |
8
|
|
|
|
|
|
|
button => 'uint8', |
9
|
|
|
|
|
|
|
state => 'uint8', |
10
|
|
|
|
|
|
|
clicks => 'uint8', |
11
|
|
|
|
|
|
|
padding1 => 'uint8', |
12
|
|
|
|
|
|
|
x => 'sint32', |
13
|
|
|
|
|
|
|
y => 'sint32'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=encoding utf-8 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
SDL2::MouseButtonEvent - Mouse button event structure |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
use SDL2 qw[:all]; |
24
|
|
|
|
|
|
|
# TODO: I need to whip up a quick example |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 Fields |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=over |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item C - C or C |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=item C - In milliseconds, populated using L<< C|SDL2::FFI/C >> |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item C - The window with mouse focus, if any |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item C - The mouse instance id, or C |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item C |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item C - C or C |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item C - C<1> for single-click, C<2> for double-click, etc. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item C |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item C - X coordinate, relative to window |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item C - Y coordinate, relative to window |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=back |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=begin stopwords |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=end stopwords |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
}; |
67
|
|
|
|
|
|
|
1; |