| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package SDL2::JoyHatEvent { |
|
2
|
2
|
|
|
2
|
|
15
|
use SDL2::Utils; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
25
|
|
|
3
|
|
|
|
|
|
|
has |
|
4
|
|
|
|
|
|
|
type => 'uint32', |
|
5
|
|
|
|
|
|
|
timestamp => 'uint32', |
|
6
|
|
|
|
|
|
|
which => 'opaque', # SDL_JoystickID |
|
7
|
|
|
|
|
|
|
hat => 'uint8', |
|
8
|
|
|
|
|
|
|
value => 'uint8', |
|
9
|
|
|
|
|
|
|
padding1 => 'uint8', |
|
10
|
|
|
|
|
|
|
padding2 => 'uint8'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=encoding utf-8 |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
SDL2::JoyHatEvent - Joystick hat position change 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 |
|
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 - The joystick trackball index |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item C - The hat position value such as: C, C, C, C, C, C, C, C, or C |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Note that zero means the POV is centered. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item C |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item C |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=back |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=begin stopwords |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=end stopwords |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
}; |
|
60
|
|
|
|
|
|
|
1; |