X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=input.c;fp=input.c;h=362f3ce9121c4d088cdc6ac71d1f74f88b425f24;hb=7ceadd9993ea84078e9d74d79215419e06496f90;hp=12654e4168578ef521ec82bd0784ad45750b631b;hpb=c54d04fd84f59c60c6ecdbd2502fbda5de735b4b;p=libpicofe.git diff --git a/input.c b/input.c index 12654e4..362f3ce 100644 --- a/input.c +++ b/input.c @@ -60,7 +60,8 @@ 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].code == 0) + if (defbinds[i].bit == 0 && defbinds[i].btype == 0 + && defbinds[i].bit == 0) break; binds[IN_BIND_OFFS(defbinds[i].code, defbinds[i].btype)] = 1 << defbinds[i].bit;