From: Tobias Leich Date: Mon, 9 Nov 2009 19:08:51 +0000 (+0100) Subject: migrate ExposeEvent X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f9c7168f77e4147b9d390f414186274455659a4;p=sdlgit%2FSDL_perl.git migrate ExposeEvent --- diff --git a/src/Core/objects/Event.xs b/src/Core/objects/Event.xs index a0cc814..185150a 100644 --- a/src/Core/objects/Event.xs +++ b/src/Core/objects/Event.xs @@ -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