From aa14ee1232102ef4b2dddc5ce8bd1d08bdd65b77 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 25 Sep 2020 00:25:49 +1000 Subject: [PATCH] - InputState: Scale dyaw/dpitch with regards to ticrate. All testing on initial uplift was with Duke at 30Hz. SW running at 40Hz therefore is not at the same speed as the others. --- source/core/inputstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index 0ff098f80..219facf1d 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -188,10 +188,10 @@ ControlInfo CONTROL_GetInput() I_GetAxes(joyaxes); - hidInput.dyaw += -joyaxes[JOYAXIS_Yaw] * 45.f; + hidInput.dyaw += -joyaxes[JOYAXIS_Yaw] * (1350.f / GameTicRate); hidInput.dx += -joyaxes[JOYAXIS_Side] * 0.75f; hidInput.dz += -joyaxes[JOYAXIS_Forward] * 0.75f; - hidInput.dpitch += -joyaxes[JOYAXIS_Pitch] * 22.5f; + hidInput.dpitch += -joyaxes[JOYAXIS_Pitch] * (675.f / GameTicRate); } return hidInput;