blib/lib/SDL2/JoyButtonEvent.pm untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 5 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package SDL2::JoyButtonEvent {
2 use SDL2::Utils;
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::JoyButtonEvent - Joystick 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<type> - C<SDL_JOYBUTTONDOWN> or C<SDL_JOYBUTTONUP>
31  
32 =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >>
33  
34 =item C<which> - The joystick instance id
35  
36 =item C<button> - The joystick button index
37  
38 =item C<state> - C<SDL_PRESSED> or C<SDL_RELEASED>
39  
40 =item C<padding1>
41  
42 =item C<padding2>
43  
44 =back
45  
46 =head1 AUTHOR
47  
48 Sanko Robinson E<lt>sanko@cpan.orgE<gt>
49  
50 =begin stopwords
51  
52  
53 =end stopwords
54  
55 =cut
56  
57 };
58 1;