Ignore joystick input in deadzone, fixes #678

This commit is contained in:
Malin Ejdbo
2021-04-14 16:09:50 +02:00
parent a62b71ac81
commit 54e5050b53

View File

@@ -56,8 +56,7 @@ void JoystickCameraStates::updateStateFromInput(const InputState& inputState,
float value = inputState.joystickAxis(i);
if (std::fabs(value) <= t.deadzone) {
value = 0.f;
hasValue = false;
continue;
}
if (t.normalize) {