From 8f0c327ffa85ff6cd0d3ab68a7a28e53d9910ae2 Mon Sep 17 00:00:00 2001 From: Rohan <73246001+RohanBhattacharyya@users.noreply.github.com> Date: Sat, 3 Aug 2024 11:42:20 -0700 Subject: [PATCH] Fix LeftStick movement StarClientApplication.cpp It no longer has that drift. The drift is caused by the controller, and this simply turns up the threshold of where the game actually accepts the input as a movement. --- source/client/StarClientApplication.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index c84f489..a8ab969 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -972,9 +972,9 @@ void ClientApplication::updateRunning(float dt) { config->set("zoomLevel", newZoom); } - //if (m_controllerLeftStick.magnitudeSquared() > 0.001f) - // m_player->setMoveVector(m_controllerLeftStick); - //else + if (m_controllerLeftStick.magnitudeSquared() > 0.01f) + m_player->setMoveVector(m_controllerLeftStick); + else m_player->setMoveVector(Vec2F()); m_voice->setInput(m_input->bindHeld("opensb", "pushToTalk"));