Merge pull request #94 from RohanBhattacharyya/main

Fix LeftStick movement StarClientApplication.cpp
This commit is contained in:
Kae 2024-08-04 08:33:35 +10:00 committed by GitHub
commit 9b3bf5ae82
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"));