Home
last modified time | relevance | path

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

/bootable/recovery/minui/
Devents.cpp88 epoll_event ev; in ev_init() local
89 ev.events = EPOLLIN | EPOLLWAKEUP; in ev_init()
90 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init()
91 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 = static_cast<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()
166 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input() argument
168 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
[all …]
/bootable/recovery/
Dui.cpp144 struct input_event ev; in OnInputEvent() local
145 if (ev_get_input(fd, epevents, &ev) == -1) { in OnInputEvent()
149 if (ev.type == EV_SYN) { in OnInputEvent()
151 } else if (ev.type == EV_REL) { in OnInputEvent()
152 if (ev.code == REL_Y) { in OnInputEvent()
157 rel_sum += ev.value; in OnInputEvent()
172 if (ev.type == EV_KEY && ev.code <= KEY_MAX) { in OnInputEvent()
173 ProcessKey(ev.code, ev.value); in OnInputEvent()
/bootable/recovery/minui/include/minui/
Dminui.h89 int ev_get_input(int fd, uint32_t epevents, input_event* ev);