X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=input.c;fp=input.c;h=d0e4a4e691668a2ccb9806be7499a666a0717a79;hb=21604a047941b8fe81d381ede0371c75da964afd;hp=783ed1e2be69fd4890a36de12f5f9d9d14b00701;hpb=0415ebf191d0d277d1dfba1bebe6f051a5fc89a8;p=libpicofe.git diff --git a/input.c b/input.c index 783ed1e..d0e4a4e 100644 --- a/input.c +++ b/input.c @@ -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;