mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Fix analog stick stuck in Up
This commit is contained in:
1 parent
d239f4ece1
commit
449f56d6f8
1 file changed
+1
-1
@@ -101,7 +101,7 @@ void __CtrlSetAnalog(float x, float y)
|
||||
if (x > 1.0f) x = 1.0f;
|
||||
if (y > 1.0f) y = 1.0f;
|
||||
if (x < -1.0f) x = -1.0f;
|
||||
if (y > -1.0f) y = -1.0f;
|
||||
if (y < -1.0f) y = -1.0f;
|
||||
ctrl.analog[0] = (u8)(x * 127.f + 128.f);
|
||||
ctrl.analog[1] = (u8)(y * 127.f + 128.f);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user