| 1 | package SDL2::CommonEvent { | ||
| 2 | use SDL2::Utils; | ||
| 3 | has | ||
| 4 | type => 'uint32', | ||
| 5 | timestamp => 'uint32'; | ||
| 6 | |||
| 7 | =encoding utf-8 | ||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | SDL2::CommonEvent - Structure with fields shared by every event | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | use SDL2 qw[:all]; | ||
| 16 | # TODO: I need to whip up a quick example | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | |||
| 21 | =head1 Fields | ||
| 22 | |||
| 23 | =over | ||
| 24 | |||
| 25 | =item C<type> | ||
| 26 | |||
| 27 | =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >> | ||
| 28 | |||
| 29 | =back | ||
| 30 | |||
| 31 | =head1 AUTHOR | ||
| 32 | |||
| 33 | Sanko Robinson E<lt>sanko@cpan.orgE<gt> | ||
| 34 | |||
| 35 | =begin stopwords | ||
| 36 | |||
| 37 | |||
| 38 | =end stopwords | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | }; | ||
| 43 | 1; |