blib/lib/SDL2/KeyboardEvent.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::KeyboardEvent {
2 use SDL2::Utils;
3 has
4 type => 'uint32',
5 timestamp => 'uint32',
6 windowId => 'uint32',
7 state => 'uint8',
8 repeat => 'uint8',
9 padding2 => 'uint8',
10 padding3 => 'uint8',
11 keysym => 'opaque' # SDL_Keysym
12 ;
13  
14 =encoding utf-8
15  
16 =head1 NAME
17  
18 SDL2::KeyboardEvent - Keyboard button event structure
19  
20 =head1 SYNOPSIS
21  
22 use SDL2 qw[:all];
23 # TODO: I need to whip up a quick example
24  
25 =head1 DESCRIPTION
26
27  
28 =head1 Fields
29  
30 =over
31  
32 =item C<type> - C<SDL_KEYDOWN> or C<SDL_KEYUP>
33  
34 =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >>
35  
36 =item C<windowID> - The window with keyboard focus, if any
37  
38 =item C<state> - C<SDL_PRESSED> or C<SDL_RELEASED>
39  
40 =item C<repeat> - Non-zero if this is a key repeat
41  
42 =item C<padding2>
43  
44 =item C<padding3>
45  
46 =item C<keysym> - The key that was pressed or released
47  
48 =back
49  
50 =head1 AUTHOR
51  
52 Sanko Robinson E<lt>sanko@cpan.orgE<gt>
53  
54 =begin stopwords
55  
56  
57 =end stopwords
58  
59 =cut
60  
61 };
62 1;