From: Paul Cercueil Date: Thu, 26 Sep 2013 12:56:25 +0000 (-0300) Subject: Allow one key to have multiple actions X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=commitdiff_plain;h=87dc66a0252fe3a19ca10db73d495724a2193e71;hp=d685ce4625e9f3b25b0852d31960cb429da06a9d Allow one key to have multiple actions --- diff --git a/input.c b/input.c index ca9dac2..2c34a79 100644 --- a/input.c +++ b/input.c @@ -63,7 +63,7 @@ static int *in_alloc_binds(int drv_id, int key_count) if (defbinds[i].bit == 0 && defbinds[i].btype == 0 && defbinds[i].bit == 0) break; - binds[IN_BIND_OFFS(defbinds[i].code, defbinds[i].btype)] = + binds[IN_BIND_OFFS(defbinds[i].code, defbinds[i].btype)] |= 1 << defbinds[i].bit; }