mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Skip deadzone option on tilt
This commit is contained in:
1 parent
c6948561fd
commit
4d6fc424cd
4 files changed
+6
-2
No files matched your search
@@ -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 - deadzone) * factor * factor;
|
||||
return (x + g_Config.fTiltDeadzoneSkip - deadzone) * factor * factor;
|
||||
} else if (x < -deadzone) {
|
||||
return (x + deadzone) * factor * factor;
|
||||
return (x - g_Config.fTiltDeadzoneSkip + deadzone) * factor * factor;
|
||||
} else {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user