Lines Matching refs:js_event
48 struct js_event e;
51 where js_event is defined as::
53 struct js_event {
64 js_event.type
85 js_event.number
107 js_event.value
120 if (js_event.type == JS_EVENT_BUTTON) {
121 buttons_state ^= (1 << js_event.number);
128 if ((js_event.type & ~JS_EVENT_INIT) == JS_EVENT_BUTTON) {
129 if (js_event.value)
130 buttons_state |= (1 << js_event.number);
132 buttons_state &= ~(1 << js_event.number);
140 js_event.time
143 The time an event was generated is stored in ``js_event.time``. It's a time
216 struct js_event mybuffer[0xff];
221 sizeof(js_event) Again, if the buffer was full, it's a good idea to