Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (26 sloc) 0.972 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package SDL::Event;
use strict;
use warnings;
use vars qw(@ISA @EXPORT @EXPORT_OK);
require Exporter;
require DynaLoader;
use SDL::Constants ':SDL::Events';
our @ISA = qw(Exporter DynaLoader);

use SDL::Internal::Loader;
internal_load_dlls(__PACKAGE__);

bootstrap SDL::Event;

use base 'Exporter';
our @EXPORT = @{ $SDL::Constants::EXPORT_TAGS{'SDL::Events'} };
our %EXPORT_TAGS = (
all => \@EXPORT,
type => $SDL::Constants::EXPORT_TAGS{'SDL::Events/type'},
mask => $SDL::Constants::EXPORT_TAGS{'SDL::Events/mask'},
action => $SDL::Constants::EXPORT_TAGS{'SDL::Events/action'},
state => $SDL::Constants::EXPORT_TAGS{'SDL::Events/state'},
hat => $SDL::Constants::EXPORT_TAGS{'SDL::Events/hat'},
app => $SDL::Constants::EXPORT_TAGS{'SDL::Events/app'},
button => $SDL::Constants::EXPORT_TAGS{'SDL::Events/button'},
keysym => $SDL::Constants::EXPORT_TAGS{'SDL::Events/keysym'},
keymod => $SDL::Constants::EXPORT_TAGS{'SDL::Events/keymod'}
);

1;
Something went wrong with that request. Please try again.