The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SDL2::JoyHatEvent - Joystick hat position change event structure

SYNOPSIS

    use SDL2 qw[:all];
    # TODO: I need to whip up a quick example

DESCRIPTION

Fields

type - SDL_JOYHATMOTION
timestamp - In milliseconds, populated using SDL_GetTicks( )
which - The joystick instance id
hat - The joystick trackball index
value - The hat position value such as: SDL_HAT_LEFTUP, SDL_HAT_UP, SDL_HAT_RIGHTUP, SDL_HAT_LEFT, SDL_HAT_CENTERED, SDL_HAT_RIGHT, SDL_HAT_LEFTDOWN, SDL_HAT_DOWN, or SDL_HAT_RIGHTDOWN

Note that zero means the POV is centered.

padding1
padding2

LICENSE

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.

AUTHOR

Sanko Robinson <sanko@cpan.org>