--- /dev/null
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+#ifndef aTHX_
+#define aTHX_
+#endif
+
+#include <SDL.h>
+
+MODULE = SDL::KeyboardEvent PACKAGE = SDL::KeyboardEvent PREFIX = kbevent_
+
+=for documentation
+
+SDL_KeyboardEvent --Keyboard event structure
+
+ typedef struct{
+ Uint8 type;
+ Uint8 state;
+ SDL_keysym keysym;
+ } SDL_KeyboardEvent;
+
+
+=cut
+
+Uint8
+kbevent_type ( event, ... )
+ SDL_KeyboardEvent *event
+ CODE:
+ RETVAL = event->type;
+ OUTPUT:
+ RETVAL
+
+Uint8
+kbevent_state ( event, ... )
+ SDL_KeyboardEvent *event
+ CODE:
+ RETVAL = event->state;
+ OUTPUT:
+ RETVAL
+
+SDL_keysym
+kbevent_keysym ( event, ... )
+ SDL_KeyboardEvent *event
+ CODE:
+ RETVAL = event->gain;
+ OUTPUT:
+ RETVAL