From 5cdeb585719b72fc08d24c9bdf7020a93d2cfef3 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 5 Aug 2018 17:36:20 -0400 Subject: [PATCH] Makes digital to analogue conversion more extreme. --- Inputs/Joystick.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Inputs/Joystick.hpp b/Inputs/Joystick.hpp index 614cce01c..d86d9ac04 100644 --- a/Inputs/Joystick.hpp +++ b/Inputs/Joystick.hpp @@ -186,10 +186,10 @@ class ConcreteJoystick: public Joystick { using Type = Joystick::Input::Type; switch(input.type) { default: did_set_input(input, is_active ? 1.0f : 0.0f); break; - case Type::Left: did_set_input(Input(Type::Horizontal, input.info.control.index), is_active ? 0.25f : 0.5f); break; - case Type::Right: did_set_input(Input(Type::Horizontal, input.info.control.index), is_active ? 0.75f : 0.5f); break; - case Type::Up: did_set_input(Input(Type::Vertical, input.info.control.index), is_active ? 0.25f : 0.5f); break; - case Type::Down: did_set_input(Input(Type::Vertical, input.info.control.index), is_active ? 0.75f : 0.5f); break; + case Type::Left: did_set_input(Input(Type::Horizontal, input.info.control.index), is_active ? 0.1f : 0.5f); break; + case Type::Right: did_set_input(Input(Type::Horizontal, input.info.control.index), is_active ? 0.9f : 0.5f); break; + case Type::Up: did_set_input(Input(Type::Vertical, input.info.control.index), is_active ? 0.1f : 0.5f); break; + case Type::Down: did_set_input(Input(Type::Vertical, input.info.control.index), is_active ? 0.9f : 0.5f); break; } }