SDL2::JoyHatEvent - Joystick hat position change event structure
use SDL2 qw[:all]; # TODO: I need to whip up a quick example
type
SDL_JOYHATMOTION
timestamp
SDL_GetTicks( )
which
hat
value
SDL_HAT_LEFTUP
SDL_HAT_UP
SDL_HAT_RIGHTUP
SDL_HAT_LEFT
SDL_HAT_CENTERED
SDL_HAT_RIGHT
SDL_HAT_LEFTDOWN
SDL_HAT_DOWN
SDL_HAT_RIGHTDOWN
Note that zero means the POV is centered.
padding1
padding2
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
Sanko Robinson <sanko@cpan.org>
To install SDL2::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL2::FFI
CPAN shell
perl -MCPAN -e shell install SDL2::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.