Searched refs:ev (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/minui/ |
D | events.cpp | 87 epoll_event ev; in ev_init() local 88 ev.events = EPOLLIN | EPOLLWAKEUP; in ev_init() 89 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init() 90 if (epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in ev_init() 125 epoll_event ev; in ev_add_fd() local 126 ev.events = EPOLLIN | EPOLLWAKEUP; in ev_add_fd() 127 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_add_fd() 128 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd() 167 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input() argument 169 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input() [all …]
|
D | minui.h | 79 int ev_get_input(int fd, uint32_t epevents, input_event* ev);
|
/bootable/recovery/ |
D | ui.cpp | 91 struct input_event ev; in OnInputEvent() local 92 if (ev_get_input(fd, epevents, &ev) == -1) { in OnInputEvent() 96 if (ev.type == EV_SYN) { in OnInputEvent() 98 } else if (ev.type == EV_REL) { in OnInputEvent() 99 if (ev.code == REL_Y) { in OnInputEvent() 104 rel_sum += ev.value; in OnInputEvent() 119 if (ev.type == EV_KEY && ev.code <= KEY_MAX) { in OnInputEvent() 120 ProcessKey(ev.code, ev.value); in OnInputEvent()
|