SDL2::Event - General event structure
use SDL2 qw[:all]; # TODO: I need to whip up a quick example
SDL2::Event is a C union which generalizes all known SDL2 events.
As a union, this object main contain the following structures:
type
common
display
window
key
edit
text
motion
button
wheel
jaxis
jball
jhat
jbutton
jdevice
caxis
cbutton
cdevice
adevice
sensor
quit
user
syswm
tfinger
mgesture
dgesture
drop
padding
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.