Correct functionality of the display rotation control rotation.

Fixes #19775

A future step might be to also rotate the touch screen inputs..
This commit is contained in:
Henrik Rydgård committed 2026-01-23 01:18:58 +01:00
1 parent 894cab3247
commit c232867fba
52 files changed
+121 -20

No files matched your search

+1 -1
View File
@@ -651,7 +651,7 @@ void ControlMapper::Axis(const AxisInput *axes, size_t count) {
}
void ControlMapper::Update(const DisplayLayoutConfig &config, double now) {
iInternalScreenRotationCached_ = config.iInternalScreenRotation;
iInternalScreenRotationCached_ = config.bRotateControlsWithScreen ? config.iInternalScreenRotation : ROTATION_LOCKED_HORIZONTAL;
if (autoRotatingAnalogCW_) {
// Clamp to a square
float x = std::min(1.0f, std::max(-1.0f, 1.42f * (float)cos(now * -g_Config.fAnalogAutoRotSpeed)));