From: Kartik Thakore Date: Tue, 22 Sep 2009 15:26:22 +0000 (-0400) Subject: Updated SDL::Event docs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5ce21277de35782181af0cd2413a50308d16b010;p=sdlgit%2FSDL_perl.git Updated SDL::Event docs --- diff --git a/lib/SDL/Event.pm b/lib/SDL/Event.pm index df0be5b..0501172 100644 --- a/lib/SDL/Event.pm +++ b/lib/SDL/Event.pm @@ -205,6 +205,8 @@ SDL::Event - a SDL perl extension use SDL::Event; my $event = new SDL::Event; # create a new event + $event->pump(); # pump all events from SDL Event Queue + $event->poll(); # Get the top one from the queue while ($event->wait()) { my $type = $event->type(); # get event type # ... handle event