notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in_evdev: do all events in update_keycode
[libpicofe.git]
/
common
/
input.c
diff --git
a/common/input.c
b/common/input.c
index
182e9fb
..
a6d331e
100644
(file)
--- a/
common/input.c
+++ b/
common/input.c
@@
-355,9
+355,6
@@
int in_update_keycode(int *dev_id_out, int *is_down_out, int timeout_ms)
drv = &DRV(in_devices[dev_id].drv_id);
result = drv->update_keycode(in_devices[dev_id].drv_data, &is_down);
drv = &DRV(in_devices[dev_id].drv_id);
result = drv->update_keycode(in_devices[dev_id].drv_data, &is_down);
-
- /* update_keycode() might return -1 when some not interesting
- * event happened, like sync event for evdev. */
if (result >= 0)
break;
if (result >= 0)
break;
@@
-370,7
+367,7
@@
int in_update_keycode(int *dev_id_out, int *is_down_out, int timeout_ms)
}
}
}
}
- if (result
== -1
)
+ if (result
< 0
)
return -1;
finish:
/* keep track of menu key state, to allow mixing
return -1;
finish:
/* keep track of menu key state, to allow mixing