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.
This commit is contained in:
Rohan 2024-08-03 11:42:20 -07:00 committed by GitHub
parent 6321a7d75d
commit 8f0c327ffa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"));