Split the display layout config between landscape and portrait orientations

This commit is contained in:
Henrik Rydgård
2025-11-05 12:49:51 +01:00
parent 3e2edbfe81
commit 67010ff2af
60 changed files with 480 additions and 317 deletions
+2 -2
View File
@@ -510,7 +510,7 @@ AnalogCalibrationScreen::AnalogCalibrationScreen(const Path &gamePath) : UITwoPa
[](int vkey, bool down) {},
[](int vkey, float analogValue) {},
[&](uint32_t bitsToSet, uint32_t bitsToClear) {},
[&](int stick, float x, float y) {
[&](int iInternalRotation, int stick, float x, float y) {
analogX_[stick] = x;
analogY_[stick] = y;
},
@@ -521,7 +521,7 @@ AnalogCalibrationScreen::AnalogCalibrationScreen(const Path &gamePath) : UITwoPa
}
void AnalogCalibrationScreen::update() {
mapper_.Update(time_now_d());
mapper_.Update(g_Config.GetDisplayLayoutConfig(GetDeviceOrientation()), time_now_d());
// We ignore the secondary stick for now and just use the two views
// for raw and psp input.
if (stickView_[0]) {