| 1 | package SDL2::ControllerAxisEvent { | ||
| 2 | use SDL2::Utils; | ||
| 3 | has | ||
| 4 | type => 'uint32', | ||
| 5 | timestamp => 'uint32', | ||
| 6 | which => 'opaque', # SDL_JoystickID | ||
| 7 | axis => 'uint8', | ||
| 8 | padding1 => 'uint8', | ||
| 9 | padding2 => 'uint8', | ||
| 10 | padding3 => 'uint8', | ||
| 11 | value => 'sint16', | ||
| 12 | padding4 => 'uint8'; | ||
| 13 | |||
| 14 | =encoding utf-8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | SDL2::ControllerAxisEvent - Game controller axis motion 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_CONTROLLERAXISMOTION> | ||
| 33 | |||
| 34 | =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >> | ||
| 35 | |||
| 36 | =item C<which> - The joystick instance id | ||
| 37 | |||
| 38 | =item C<axis> - The controller axis | ||
| 39 | |||
| 40 | =item C<padding1> | ||
| 41 | |||
| 42 | =item C<padding2> | ||
| 43 | |||
| 44 | =item C<padding3> | ||
| 45 | |||
| 46 | =item C<value> - The axis value (range: C<-32768> to C<32767>) | ||
| 47 | |||
| 48 | =item C<padding4> | ||
| 49 | |||
| 50 | =back | ||
| 51 | |||
| 52 | =head1 AUTHOR | ||
| 53 | |||
| 54 | Sanko Robinson E<lt>sanko@cpan.orgE<gt> | ||
| 55 | |||
| 56 | =begin stopwords | ||
| 57 | |||
| 58 | |||
| 59 | =end stopwords | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | }; | ||
| 64 | 1; |