Lines Matching refs:ev
206 struct input_event ev; in button_dispatch() local
213 l = read(b->fd, &ev, sizeof(ev)); in button_dispatch()
216 if ((size_t) l < sizeof(ev)) in button_dispatch()
219 if (ev.type == EV_KEY && ev.value > 0) { in button_dispatch()
221 switch (ev.code) { in button_dispatch()
284 } else if (ev.type == EV_KEY && ev.value == 0) { in button_dispatch()
286 switch (ev.code) { in button_dispatch()
341 } else if (ev.type == EV_SW && ev.value > 0) { in button_dispatch()
343 if (ev.code == SW_LID) { in button_dispatch()
352 } else if (ev.code == SW_DOCK) { in button_dispatch()
360 } else if (ev.type == EV_SW && ev.value == 0) { in button_dispatch()
362 if (ev.code == SW_LID) { in button_dispatch()
370 } else if (ev.code == SW_DOCK) { in button_dispatch()