notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
menu: make key config more intuitive
[libpicofe.git]
/
linux
/
in_evdev.c
diff --git
a/linux/in_evdev.c
b/linux/in_evdev.c
index
a51fe2d
..
e6bdad1
100644
(file)
--- a/
linux/in_evdev.c
+++ b/
linux/in_evdev.c
@@
-570,7
+570,9
@@
static void in_evdev_get_def_binds(int *binds)
{
int i;
{
int i;
- for (i = 0; in_evdev_defbinds[i].bit != 0; i++) {
+ for (i = 0; ; i++) {
+ if (in_evdev_defbinds[i].bit == 0 && in_evdev_defbinds[i].code == 0)
+ break;
binds[IN_BIND_OFFS(in_evdev_defbinds[i].code, in_evdev_defbinds[i].btype)] =
1 << in_evdev_defbinds[i].bit;
}
binds[IN_BIND_OFFS(in_evdev_defbinds[i].code, in_evdev_defbinds[i].btype)] =
1 << in_evdev_defbinds[i].bit;
}