},
libraries => [qw( SDL )],
},
+ KeyboardEvent => {
+ file => {
+ from => 'src/Core/objects/KeyboardEvent.xs',
+ to => 'lib/SDL/KeyboardEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ MouseMotionEvent => {
+ file => {
+ from => 'src/Core/objects/MouseMotionEvent.xs',
+ to => 'lib/SDL/MouseMotionEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
MultiThread => {
file => {
from => 'src/Core/MultiThread.xs',
--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+MODULE = SDL::MouseMotionEvent PACKAGE = SDL::MouseMotionEvent PREFIX = mmevent_
+
+=for documentation
+
+SDL_MouseMotionEvent -- Mouse motion event structure
+
+ typedef struct{
+ Uint8 type;
+ Uint8 state;
+ Uint16 x, y;
+ Uint16 xrel, yrel;
+ } SDL_MouseMotionEvent;
+
+
+=cut
+
+Uint8
+mmevent_type ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->type;
+ OUTPUT:
+ RETVAL
+
+Uint8
+mmevent_state ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->state;
+ OUTPUT:
+ RETVAL
+
+Uint16
+mmevent_x ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->x;
+ OUTPUT:
+ RETVAL
+
+Uint16
+mmevent_y ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->y;
+ OUTPUT:
+ RETVAL
+
+Uint16
+mmevent_xrel ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->xrel;
+ OUTPUT:
+ RETVAL
+
+Uint16
+mmevent_yrel ( event, ... )
+ SDL_MouseMotionEvent *event
+ CODE:
+ RETVAL = event->yrel;
+ OUTPUT:
+ RETVAL