mbevent_which ( event, ... )
SDL_MouseButtonEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->which = SvIV( ST(1) );
+
+ }
+
+
RETVAL = event->which;
OUTPUT:
RETVAL
Uint8
mbevent_button ( event, ... )
SDL_MouseButtonEvent *event
- CODE:
+ CODE:
+ if( items > 1 )
+ {
+ event->button = SvIV( ST(1) );
+
+ }
+
+
RETVAL = event->button;
OUTPUT:
RETVAL
mbevent_state ( event, ... )
SDL_MouseButtonEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->state = SvIV( ST(1) );
+
+ }
+
+
RETVAL = event->state;
OUTPUT:
RETVAL
mbevent_x ( event, ... )
SDL_MouseButtonEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->x = SvIV( ST(1) );
+
+ }
+
+
RETVAL = event->x;
OUTPUT:
RETVAL
mbevent_y ( event, ... )
SDL_MouseButtonEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->y = SvIV( ST(1) );
+
+ }
+
+
RETVAL = event->y;
OUTPUT:
RETVAL
+
+
+void
+mbevent_DESTROY(self)
+ SDL_MouseButtonEvent *self
+ CODE:
+ safefree( (char *)self );