From 83a654540a75c0575d39d10c3059d531922bee32 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 16 Jun 2018 22:22:14 -0400 Subject: [PATCH] Fixes threshold for positive movement. --- Inputs/Joystick.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Inputs/Joystick.hpp b/Inputs/Joystick.hpp index bb25f5e67..b07d1e027 100644 --- a/Inputs/Joystick.hpp +++ b/Inputs/Joystick.hpp @@ -188,11 +188,11 @@ class ConcreteJoystick: public Joystick { default: did_set_input(input, value > 0.5f); break; case Type::Horizontal: did_set_input(Input(Type::Left, input.info.control.index), value <= 0.25f); - did_set_input(Input(Type::Right, input.info.control.index), value >= 0.25f); + did_set_input(Input(Type::Right, input.info.control.index), value >= 0.75f); break; case Type::Vertical: did_set_input(Input(Type::Up, input.info.control.index), value <= 0.25f); - did_set_input(Input(Type::Down, input.info.control.index), value >= 0.25f); + did_set_input(Input(Type::Down, input.info.control.index), value >= 0.75f); break; } }