jhevent_which ( event, ... )
SDL_JoyHatEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->which = SvIV( ST(1) );
+
+ }
+
RETVAL = event->which;
OUTPUT:
RETVAL
Uint8
jhevent_hat ( event, ... )
SDL_JoyHatEvent *event
+ if( items > 1 )
+ {
+ event->hat = SvIV( ST(1) );
+
+ }
+
+
CODE:
RETVAL = event->hat;
OUTPUT:
jhevent_value ( event, ... )
SDL_JoyHatEvent *event
CODE:
+ if( items > 1 )
+ {
+ event->value = SvIV( ST(1) );
+
+ }
+
RETVAL = event->value;
OUTPUT:
RETVAL
+
+void
+jhevent_DESTROY(self)
+ SDL_JoyHatEvent *self
+ CODE:
+ safefree( (char *)self );