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
orSDL_MOUSEBUTTONUP
timestamp
- In milliseconds, populated usingSDL_GetTicks( )
windowID
- The window with mouse focus, if anywhich
- The mouse instance id, orSDL_TOUCH_MOUSEID
state
-SDL_PRESSED
orSDL_RELEASED
clicks
-1
for single-click,2
for double-click, etc.padding1
x
- X coordinate, relative to windowy
- Y coordinate, relative to window
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>