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