migrate ExposeEvent
Tobias Leich [Mon, 9 Nov 2009 19:08:51 +0000 (20:08 +0100)]
src/Core/objects/Event.xs

index a0cc814..185150a 100644 (file)
@@ -263,6 +263,21 @@ event_expose ( event, ... )
        OUTPUT:
                RETVAL
 
+Uint8
+event_expose_type ( event, ... )
+       SDL_Event *event
+       CODE: 
+               SDL_ExposeEvent * a = &(event->expose);
+
+               if( items > 1 )
+               {
+                       a->type = SvIV( ST(1) );
+               }
+
+               RETVAL = a->type;
+       OUTPUT:
+               RETVAL
+
 SDL_QuitEvent *
 event_quit ( event, ... )
        SDL_Event * event