From: Kartik Thakore Date: Thu, 12 Nov 2009 01:02:01 +0000 (-0500) Subject: Added poll_event docs to Events.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=21c650e287205052c79e7739875acefa08e431e4;p=sdlgit%2FSDL_perl.git Added poll_event docs to Events.pod --- diff --git a/lib/pods/SDL/Events.pod b/lib/pods/SDL/Events.pod index ba536de..4fa17bf 100644 --- a/lib/pods/SDL/Events.pod +++ b/lib/pods/SDL/Events.pod @@ -82,7 +82,13 @@ Examples of mask: Number of Events actually stored or -1 if there was an error -=head2 poll_event +=head2 poll_event($event) + +Polls for currently pending events. + +If $event is not NULL, the next event is removed from the queue and stored in the L structure pointed to by $event. + +As this function implicitly calls pump_events, you can only call this function in the thread that set the video mode with L. =head2 push_event @@ -90,6 +96,6 @@ Number of Events actually stored or -1 if there was an error =head1 SEE ALSO -L +L, L =cut