X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Femu.c;h=acbe643bf96beb514c7d4a3181d35fa59b805926;hb=450dab6fe58cfb6320b3f17211919029be679fa2;hp=2ea26732c017f8ddcc3f5128b75e15c44a9bbd98;hpb=67dfdf5fa6bdd5f923d7d181aaaa79b784792782;p=libpicofe.git diff --git a/psp/emu.c b/psp/emu.c index 2ea2673..acbe643 100644 --- a/psp/emu.c +++ b/psp/emu.c @@ -765,10 +765,10 @@ static void updateKeys(void) pl = (acts >> 16) & 1; if (kb_combo_keys & (1 << i)) { - int u, acts_c = acts & kb_combo_acts; + int u = i+1, acts_c = acts & kb_combo_acts; // let's try to find the other one if (acts_c) { - for (u = i + 1; u < 32; u++) + for (; u < 32; u++) if ( (keys & (1 << u)) && (currentConfig.KeyBinds[u] & acts_c) ) { allActions[pl] |= acts_c & currentConfig.KeyBinds[u]; keys &= ~((1 << i) | (1 << u));