line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SDL2::ControllerButtonEvent { |
2
|
2
|
|
|
2
|
|
18
|
use SDL2::Utils; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
18
|
|
3
|
|
|
|
|
|
|
has |
4
|
|
|
|
|
|
|
type => 'uint32', |
5
|
|
|
|
|
|
|
timestamp => 'uint32', |
6
|
|
|
|
|
|
|
which => 'opaque', # SDL_JoystickID |
7
|
|
|
|
|
|
|
button => 'uint8', |
8
|
|
|
|
|
|
|
state => 'uint8', |
9
|
|
|
|
|
|
|
padding1 => 'uint8', |
10
|
|
|
|
|
|
|
padding2 => 'uint8'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=encoding utf-8 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
SDL2::ControllerButtonEvent - Game controller button event structure |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use SDL2 qw[:all]; |
21
|
|
|
|
|
|
|
# TODO: I need to whip up a quick example |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 Fields |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item C - C or C |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item C - In milliseconds, populated using L<< C|SDL2::FFI/C >> |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item C - The joystick instance id |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item C |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item C - C or C |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item C |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item C |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=back |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=begin stopwords |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=end stopwords |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
1; |