mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-21 04:19:19 -06:00
Ignore joystick input in deadzone, fixes #678
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user