input: bugfix in defbind check

This commit is contained in:
notaz 2015-11-08 18:19:22 +02:00
parent 0415ebf191
commit 21604a0479

View file

@ -63,7 +63,7 @@ static int *in_alloc_binds(int drv_id, int key_count)
defbinds = DRV(drv_id).defbinds;
if (defbinds != NULL) {
for (i = 0; ; i++) {
if (defbinds[i].bit == 0 && defbinds[i].btype == 0
if (defbinds[i].code == 0 && defbinds[i].btype == 0
&& defbinds[i].bit == 0)
break;