mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
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:
1 parent
894cab3247
commit
c232867fba
52 files changed
+121
-20
No files matched your search
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user