Added stub for Events.pod
Kartik Thakore [Tue, 10 Nov 2009 20:58:38 +0000 (15:58 -0500)]
lib/pods/SDL/Events.pod [new file with mode: 0644]

diff --git a/lib/pods/SDL/Events.pod b/lib/pods/SDL/Events.pod
new file mode 100644 (file)
index 0000000..3fe79e1
--- /dev/null
@@ -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<SDL::Event>
+
+=cut