class Rjoystick::Event
Constants
- JSAXIS
- JSBUTTON
- JSINIT
Public Instance Methods
number()
click to toggle source
VALUE js_event_number(VALUE klass) { int *fd; Data_Get_Struct(klass, int, fd); return INT2FIX((fd && *fd >= 0) ? jse[*fd].number : -1); }
time()
click to toggle source
VALUE js_event_time(VALUE klass) { int *fd; Data_Get_Struct(klass, int, fd); return INT2FIX((fd && *fd >= 0) ? jse[*fd].time : 0); }
type()
click to toggle source
VALUE js_event_type(VALUE klass) { int *fd; Data_Get_Struct(klass, int, fd); return INT2FIX((fd && *fd >= 0) ? jse[*fd].type : -1); }
value()
click to toggle source
VALUE js_event_value(VALUE klass) { int *fd; Data_Get_Struct(klass, int, fd); return INT2FIX((fd && *fd >= 0) ? jse[*fd].value : -1); }