summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-08 08:55:00 +0100
committerDees Troy <dees_troy@teamw.in>2015-02-09 16:53:21 +0100
commitde72b6d4d8f7106a9cbb611225dd0b726ba23720 (patch)
tree184dcc1e7d96db6f66c81ff639383c1bd10887d3 /minuitwrp
parentReset data manager variables before running runPages (diff)
downloadandroid_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar.gz
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar.bz2
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar.lz
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar.xz
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.tar.zst
android_bootable_recovery-de72b6d4d8f7106a9cbb611225dd0b726ba23720.zip
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/events.c4
-rw-r--r--minuitwrp/minui.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index e2414a440..0309a9a21 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -719,7 +719,7 @@ static int vk_modify(struct ev *e, struct input_event *ev)
return 0;
}
-int ev_get(struct input_event *ev)
+int ev_get(struct input_event *ev, int timeout_ms)
{
int r;
unsigned n;
@@ -740,7 +740,7 @@ int ev_get(struct input_event *ev)
lastInputStat = curr;
}
- r = poll(ev_fds, ev_count, 0);
+ r = poll(ev_fds, ev_count, timeout_ms);
if(r > 0) {
for(n = 0; n < ev_count; n++) {
diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h
index abebc1450..3aa486511 100644
--- a/minuitwrp/minui.h
+++ b/minuitwrp/minui.h
@@ -75,7 +75,7 @@ struct input_event;
int ev_init(void);
void ev_exit(void);
-int ev_get(struct input_event *ev);
+int ev_get(struct input_event *ev, int timeout_ms);
int ev_has_mouse(void);
// Resources