},
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',
--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+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