NAME

SDL2::MouseButtonEvent - Mouse button event structure

SYNOPSIS

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

DESCRIPTION

Fields

type - SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP
timestamp - In milliseconds, populated using SDL_GetTicks( )
windowID - The window with mouse focus, if any
which - The mouse instance id, or SDL_TOUCH_MOUSEID
button - The mouse button index
state - SDL_PRESSED or SDL_RELEASED
clicks - 1 for single-click, 2 for double-click, etc.
padding1
x - X coordinate, relative to window
y - Y coordinate, relative to window

AUTHOR

Sanko Robinson <sanko@cpan.org>