Home
last modified time | relevance | path

Searched refs:JS_EVENT_INIT (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/Documentation/input/
Djoystick-api.txt14 (JS_EVENT_INIT) that you can read to check the initial state of the
48 #define JS_EVENT_INIT 0x80 /* initial state of device */
50 As mentioned above, the driver will issue synthetic JS_EVENT_INIT ORed
54 int type = JS_EVENT_BUTTON | JS_EVENT_INIT; /* 0x81 */
57 you can turn off the JS_EVENT_INIT bits
59 type &= ~JS_EVENT_INIT; /* 0x01 */
98 may work well if you handle JS_EVENT_INIT events separately,
100 if ((js_event.type & ~JS_EVENT_INIT) == JS_EVENT_BUTTON) {
108 have to write a separate handler for JS_EVENT_INIT events in the first
171 synthetic events (JS_EVENT_INIT) will be generated to inform you of
/linux-4.1.27/include/uapi/linux/
Djoystick.h45 #define JS_EVENT_INIT 0x80 /* initial state of device */ macro
/linux-4.1.27/drivers/input/
Djoydev.c295 event->type = JS_EVENT_BUTTON | JS_EVENT_INIT; in joydev_generate_startup_event()
300 event->type = JS_EVENT_AXIS | JS_EVENT_INIT; in joydev_generate_startup_event()