Home
last modified time | relevance | path

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

/openbmc/linux/Documentation/input/joydev/
H A Djoystick-api.rst35 (JS_EVENT_INIT) that you can read to obtain the initial state of the
71 #define JS_EVENT_INIT 0x80 /* initial state of device */
73 As mentioned above, the driver will issue synthetic JS_EVENT_INIT ORed
77 int type = JS_EVENT_BUTTON | JS_EVENT_INIT; /* 0x81 */
80 you can turn off the JS_EVENT_INIT bits::
82 type &= ~JS_EVENT_INIT; /* 0x01 */
124 may work well if you handle JS_EVENT_INIT events separately,
128 if ((js_event.type & ~JS_EVENT_INIT) == JS_EVENT_BUTTON) {
136 have to write a separate handler for JS_EVENT_INIT events in the first
201 synthetic events (JS_EVENT_INIT) will be generated to inform you of
/openbmc/linux/include/uapi/linux/
H A Djoystick.h42 #define JS_EVENT_INIT 0x80 /* initial state of device */ macro
/openbmc/linux/drivers/input/
H A Djoydev.c302 event->type = JS_EVENT_BUTTON | JS_EVENT_INIT; in joydev_generate_startup_event()
307 event->type = JS_EVENT_AXIS | JS_EVENT_INIT; in joydev_generate_startup_event()