mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Do not apply sensibility of deadzone skip
This commit is contained in:
1 parent
4d6fc424cd
commit
1795a4e34f
1 file changed
+2
-2
@@ -18,9 +18,9 @@ inline float tiltInputCurve (float x, float deadzone, float sensitivity) {
|
||||
const float factor = sensitivity * 1.0f / (1.0f - deadzone);
|
||||
|
||||
if (x > deadzone) {
|
||||
return (x + g_Config.fTiltDeadzoneSkip - deadzone) * factor * factor;
|
||||
return (x - deadzone) * factor * factor + g_Config.fTiltDeadzoneSkip;
|
||||
} else if (x < -deadzone) {
|
||||
return (x - g_Config.fTiltDeadzoneSkip + deadzone) * factor * factor;
|
||||
return (x + deadzone) * factor * factor - g_Config.fTiltDeadzoneSkip;
|
||||
} else {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user