},
libraries => [qw( SDL )],
},
+ QuitEvent => {
+ file => {
+ from => 'src/Core/objects/QuitEvent.xs',
+ to => 'lib/SDL/QuitEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
ResizeEvent => {
file => {
from => 'src/Core/objects/ResizeEvent.xs',
--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+MODULE = SDL::QuitEvent PACKAGE = SDL::QuitEvent PREFIX = qevent_
+
+=for documentation
+
+SDL_QuitEvent -- Quit requested event
+
+ typedef struct{
+ Uint8 type;
+ } SDL_QuitEvent;
+
+
+=cut
+
+Uint8
+qevent_type ( event, ... )
+ SDL_QuitEvent *event
+ CODE:
+ RETVAL = event->type;
+ OUTPUT:
+ RETVAL