summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.c
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/events.c
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/events.c')
-rw-r--r--minuitwrp/events.c4
1 files changed, 2 insertions, 2 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++) {