Home
last modified time | relevance | path

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

/linux-6.6.21/Documentation/input/joydev/
Djoystick-api.rst48 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)
[all …]
/linux-6.6.21/drivers/input/
Djoydev.c58 struct js_event buffer[JOYDEV_BUFFER_SIZE];
89 struct js_event *event) in joydev_pass_event()
117 struct js_event event; in joydev_event()
289 struct js_event *event) in joydev_generate_startup_event()
320 struct js_event *event) in joydev_fetch_next_event()
389 struct js_event event; in joydev_read()
395 if (count < sizeof(struct js_event)) in joydev_read()
412 while (retval + sizeof(struct js_event) <= count && in joydev_read()
415 if (copy_to_user(buf + retval, &event, sizeof(struct js_event))) in joydev_read()
418 retval += sizeof(struct js_event); in joydev_read()
[all …]
/linux-6.6.21/include/uapi/linux/
Djoystick.h44 struct js_event { struct