From: Kartik Thakore Date: Tue, 10 Nov 2009 20:58:38 +0000 (-0500) Subject: Added stub for Events.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72ed98ac48134a9969a4a56c425161687931478f;p=sdlgit%2FSDL_perl.git Added stub for Events.pod --- diff --git a/lib/pods/SDL/Events.pod b/lib/pods/SDL/Events.pod new file mode 100644 index 0000000..3fe79e1 --- /dev/null +++ b/lib/pods/SDL/Events.pod @@ -0,0 +1,41 @@ +=pod + +=head1 NAME + +SDL::Events - Bindings to the Events Category in SDL API + +=head1 SYNOPSIS + +Most likely you just want to know how to get events for you app. + use SDL; + use SDL::Event; + use SDL::Events; + + SDL::init(SDL_INIT_VIDEO); # Event can only be grabbed in the same thread as this + + ... + + my $event = SDL::Event->new(); # notices 'Event' ne 'Events' + + while( 1 ) + { + SDL::Events::pump_events(); + while( SDL::Events::poll_event($event) ) + { + #check by event type + on_active() if $event->type == SDL_ACTIVEEVENT; + ... + } + } + +=head1 DESCRIPTION + + +=head1 METHODS + + +=head1 SEE ALSO + +L + +=cut