From: Tobias Leich Date: Thu, 5 Nov 2009 20:50:36 +0000 (+0100) Subject: added ExposeEvent X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a3b34e298ecf30a81c29f0885ad0ccd831d9104;p=sdlgit%2FSDL_perl.git added ExposeEvent --- diff --git a/Build.PL b/Build.PL index d02616b..11925fb 100644 --- a/Build.PL +++ b/Build.PL @@ -56,6 +56,13 @@ my %subsystems = }, libraries => [qw( SDL )], }, + ExposeEvent => { + file => { + from => 'src/Core/objects/ExposeEvent.xs', + to => 'lib/SDL/ExposeEvent.xs', + }, + libraries => [qw( SDL )], + }, JoyAxisEvent => { file => { from => 'src/Core/objects/JoyAxisEvent.xs', diff --git a/src/Core/objects/ExposeEvent.xs b/src/Core/objects/ExposeEvent.xs new file mode 100644 index 0000000..8692875 --- /dev/null +++ b/src/Core/objects/ExposeEvent.xs @@ -0,0 +1,30 @@ +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +#ifndef aTHX_ +#define aTHX_ +#endif + +#include + +MODULE = SDL::ExposeEvent PACKAGE = SDL::ExposeEvent PREFIX = weevent_ + +=for documentation + +SDL_ExposeEvent -- Window expose event + + typedef struct{ + Uint8 type; + } SDL_ExposeEvent; + + +=cut + +Uint8 +weevent_type ( event, ... ) + SDL_ExposeEvent *event + CODE: + RETVAL = event->type; + OUTPUT: + RETVAL