Lines Matching refs:ev
237 struct input_event ev; in OnInputEvent() local
238 if (ev_get_input(fd, epevents, &ev) == -1) { in OnInputEvent()
262 if (ev.type == EV_SYN) { in OnInputEvent()
263 if (touch_screen_allowed_ && ev.code == SYN_REPORT) { in OnInputEvent()
278 if (ev.type == EV_REL) { in OnInputEvent()
279 if (ev.code == REL_Y) { in OnInputEvent()
284 rel_sum += ev.value; in OnInputEvent()
299 if (touch_screen_allowed_ && ev.type == EV_ABS) { in OnInputEvent()
300 if (ev.code == ABS_MT_SLOT) { in OnInputEvent()
301 touch_slot_ = ev.value; in OnInputEvent()
306 switch (ev.code) { in OnInputEvent()
308 touch_X_ = ev.value; in OnInputEvent()
313 touch_Y_ = ev.value; in OnInputEvent()
319 if (ev.value < 0) touch_finger_down_ = false; in OnInputEvent()
325 if (ev.type == EV_KEY && ev.code <= KEY_MAX) { in OnInputEvent()
327 if (ev.code == BTN_TOUCH) { in OnInputEvent()
330 touch_finger_down_ = (ev.value == 1); in OnInputEvent()
336 if (ev.code == BTN_TOUCH || ev.code == BTN_TOOL_FINGER) { in OnInputEvent()
341 ProcessKey(ev.code, ev.value); in OnInputEvent()