Controls: Make the analog/digital mapping clash resolution more gentle.

Now takes the time into account, so clashing digital input will only shrink
analog inputs once it's a few seconds old.

Also fixes a bug where if there are both inputs, it was hard to reach
the limits because the digital input itself ended up getting shrunk.

This might help #17860
This commit is contained in:
Henrik Rydgård
2023-08-23 18:51:27 +02:00
parent a07079bdf9
commit be2f81c3eb
5 changed files with 47 additions and 25 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ AnalogSetupScreen::AnalogSetupScreen(const Path &gamePath) : UIDialogScreenWithG
}
void AnalogSetupScreen::update() {
mapper_.Update();
mapper_.Update(time_now_d());
// We ignore the secondary stick for now and just use the two views
// for raw and psp input.
if (stickView_[0]) {