Fix bug in control configuration.
When changing the input config for a button, it would pick up the newly
configured button as a "newly pressed button" on the next update, so it
would go right back into waiting for a button press again.
@@ -38212,10 +38212,12 @@ void keyboard_setup(int player)
{
safe_set(mapping, setting, k, ok);
sound_play_sample(SAMPLE_BEEP2, 0, savedata.effectvol, savedata.effectvol, 100);
+
+ // Prevent the newly configured button from counting as "pressed" and starting config again
+ playercontrolpointers[player]->keyflags |= (1 << setting);
+
setting = -1;
control_remapdevice(-1);
- // Prevent accidental screenshot
- bothnewkeys = 0;
}
}
}
