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

NAME

SDL2::MouseWheelEvent - Mouse wheel event structure

SYNOPSIS

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

DESCRIPTION

Fields

type - SDL_MOUSEWHEEL
timestamp - In milliseconds, populated using SDL_GetTicks( )
windowID - The window with mouse focus, if any
which - The mouse instance id, or SDL_TOUCH_MOUSEID
x - The amount scrolled horizontally, positive to the right and negative to the left
y - The amount scrolled vertically, positive away from the user and negative toward the user
direction - Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back

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>