},
libraries => [qw( SDL )],
},
+ SysWMEvent => {
+ file => {
+ from => 'src/Core/objects/SysWMEvent.xs',
+ to => 'lib/SDL/SysWMEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
Overlay => {
file => {
from => 'src/Core/objects/Overlay.xs',
--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+MODULE = SDL::SysWMEvent PACKAGE = SDL::SysWMEvent PREFIX = wmevent_
+
+=for documentation
+
+SDL_SysWMEvent -- Platform-dependent window manager event
+
+ typedef struct{
+ Uint8 type; /* Always SDL_SYSWMEVEBT */
+ SDL_SysWMmsg *msg;
+ } SDL_SysWMEvent;
+
+see also: L<SDL::WindowManagement::sys_WM_event>
+
+=cut
+
+Uint8
+wmevent_type ( event, ... )
+ SDL_SysWMEvent *event
+ CODE:
+ RETVAL = event->type;
+ OUTPUT:
+ RETVAL
+
+SDL_SysWMmsg *
+wmevent_msg ( event, ... )
+ SDL_SysWMEvent *event
+ PREINIT:
+ char* CLASS = "SDL::SysWMmsg";
+ CODE:
+ RETVAL = &(event->msg);
+ OUTPUT:
+ RETVAL