| 1 | package SDL2::MouseWheelEvent { | ||
| 2 | use SDL2::Utils; | ||
| 3 | has | ||
| 4 | type => 'uint32', | ||
| 5 | timestamp => 'uint32', | ||
| 6 | windowId => 'uint32', | ||
| 7 | which => 'uint32', | ||
| 8 | x => 'sint32', | ||
| 9 | y => 'sint32', | ||
| 10 | direction => 'uint32'; | ||
| 11 | |||
| 12 | =encoding utf-8 | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | SDL2::MouseWheelEvent - Mouse wheel 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_MOUSEWHEEL> | ||
| 31 | |||
| 32 | =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >> | ||
| 33 | |||
| 34 | =item C<windowID> - The window with mouse focus, if any | ||
| 35 | |||
| 36 | =item C<which> - The mouse instance id, or C<SDL_TOUCH_MOUSEID> | ||
| 37 | |||
| 38 | =item C<x> - The amount scrolled horizontally, positive to the right and negative to the left | ||
| 39 | |||
| 40 | =item C<y> - The amount scrolled vertically, positive away from the user and negative toward the user | ||
| 41 | |||
| 42 | =item C<direction> - Set to one of the C<SDL_MOUSEWHEEL_*> defines. When FLIPPED the values in X and Y will be opposite. Multiply by C<-1> to change them back | ||
| 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; |