X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgizmondo%2Femu.c;h=523da8794e73bc69fdd8f4f7b13a54e25bfb7360;hb=da31028324b365261bb0d0fcfd86abccd4df2529;hp=82c3dddb19f5574c632567c633ca9cdfc18608f9;hpb=7b802576b284e113c637324e583a3a44e0e8e871;p=picodrive.git diff --git a/platform/gizmondo/emu.c b/platform/gizmondo/emu.c index 82c3ddd..523da87 100644 --- a/platform/gizmondo/emu.c +++ b/platform/gizmondo/emu.c @@ -458,10 +458,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));