=cut
-SDL_ActiveEvent *
-aevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_ActiveEvent));
- RETVAL->type = SDL_ACTIVEEVENT;
- OUTPUT:
- RETVAL
-
Uint8
aevent_type ( event, ... )
SDL_ActiveEvent *event
RETVAL = event->state;
OUTPUT:
RETVAL
-
-void
-aevent_DESTROY(self)
- SDL_ActiveEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_ExposeEvent *
-weevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_ExposeEvent));
- RETVAL->type = SDL_VIDEOEXPOSE;
- OUTPUT:
- RETVAL
-
Uint8
weevent_type ( event, ... )
SDL_ExposeEvent *event
RETVAL = event->type;
OUTPUT:
RETVAL
-
-void
-weevent_DESTROY(self)
- SDL_ExposeEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_JoyAxisEvent *
-jaevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_JoyAxisEvent));
- RETVAL->type = SDL_JOYAXISMOTION;
- OUTPUT:
- RETVAL
-
Uint8
jaevent_type ( event, ... )
SDL_JoyAxisEvent *event
RETVAL = event->value;
OUTPUT:
RETVAL
-
-void
-jaevent_DESTROY(self)
- SDL_JoyAxisEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_JoyBallEvent *
-jtevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_JoyBallEvent));
- RETVAL->type = SDL_JOYBALLMOTION;
- OUTPUT:
- RETVAL
-
Uint8
jtevent_type ( event, ... )
SDL_JoyBallEvent *event
RETVAL = event->yrel;
OUTPUT:
RETVAL
-
-void
-jtevent_DESTROY(self)
- SDL_JoyBallEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_JoyButtonEvent *
-jbevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_JoyButtonEvent));
- RETVAL->type = SDL_JOYBUTTONDOWN;
- OUTPUT:
- RETVAL
-
Uint8
jbevent_type ( event, ... )
RETVAL = event->state;
OUTPUT:
RETVAL
-
-void
-jbevent_DESTROY(self)
-
- SDL_JoyButtonEvent *self
-
- CODE:
- safefree( (char *)self );
=cut
-SDL_JoyHatEvent *
-jhevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_JoyHatEvent));
- RETVAL->type = SDL_JOYHATMOTION;
- OUTPUT:
- RETVAL
-
Uint8
jhevent_type ( event, ... )
SDL_JoyHatEvent *event
RETVAL = event->value;
OUTPUT:
RETVAL
-
-void
-jhevent_DESTROY(self)
- SDL_JoyHatEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_KeyboardEvent *
-kbevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_KeyboardEvent));
- RETVAL->type = SDL_KEYDOWN;
- OUTPUT:
- RETVAL
-
Uint8
kbevent_type ( event, ... )
SDL_KeyboardEvent *event
RETVAL = &(event->keysym);
OUTPUT:
RETVAL
-
-void
-kbevent_DESTROY(self)
- SDL_KeyboardEvent *self
- CODE:
- safefree( (char *)self );
-
=cut
-SDL_MouseButtonEvent *
-mbevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_MouseButtonEvent));
- RETVAL->type = SDL_MOUSEBUTTONDOWN;
- OUTPUT:
- RETVAL
-
Uint8
mbevent_type ( event, ... )
SDL_MouseButtonEvent *event
RETVAL = event->y;
OUTPUT:
RETVAL
-
-
-void
-mbevent_DESTROY(self)
- SDL_MouseButtonEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_MouseMotionEvent *
-mmevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_MouseMotionEvent));
- RETVAL->type = SDL_MOUSEMOTION;
- OUTPUT:
- RETVAL
-
Uint8
mmevent_type ( event, ... )
SDL_MouseMotionEvent *event
RETVAL = event->yrel;
OUTPUT:
RETVAL
-
-void
-mmtevent_DESTROY(self)
- SDL_MouseMotionEvent *self
- CODE:
- safefree( (char *)self );
=cut
-SDL_QuitEvent *
-qevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_QuitEvent));
- RETVAL->type = SDL_QUIT;
- OUTPUT:
- RETVAL
-
Uint8
qevent_type ( event, ... )
SDL_QuitEvent *event
RETVAL = event->type;
OUTPUT:
RETVAL
-
-void
-qevent_DESTROY ( event)
- SDL_QuitEvent *event
- CODE:
- safefree( (char *) event);
=cut
-SDL_ResizeEvent *
-wrevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_ResizeEvent));
- RETVAL->type = SDL_VIDEORESIZE;
- OUTPUT:
- RETVAL
-
Uint8
wrevent_type ( event, ... )
SDL_ResizeEvent *event
RETVAL = event->h;
OUTPUT:
RETVAL
-
-void
-wrevent_DESTROY ( event)
- SDL_ResizeEvent *event
- CODE:
- safefree( (char *) event);
=cut
-SDL_SysWMEvent *
-wmevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_SysWMEvent));
- RETVAL->type = SDL_SYSWMEVENT;
- OUTPUT:
- RETVAL
-
Uint8
wmevent_type ( event, ... )
SDL_SysWMEvent *event
RETVAL = event->msg;
OUTPUT:
RETVAL
-
-void
-wmevent_DESTROY ( event)
- SDL_SysWMEvent *event
- CODE:
- safefree( (char *) event);
-
=cut
-SDL_UserEvent *
-uevent_new ( CLASS )
- char* CLASS
- CODE:
- RETVAL = safemalloc(sizeof(SDL_UserEvent));
- RETVAL->type = SDL_USEREVENT;
- OUTPUT:
- RETVAL
-
Uint8
uevent_type ( event )
SDL_UserEvent *event
RETVAL = event->data1;
OUTPUT:
RETVAL
-
-
-void
-uevent_DESTROY(self)
- SDL_UserEvent *self
- CODE:
- safefree( (char *)self );