summaryrefslogtreecommitdiffstats
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorAmeer <aj662@drexel.edu>2020-07-15 06:44:08 +0200
committerameerj <aj662@drexel.edu>2020-08-10 18:46:14 +0200
commit8928aa30088c102986d247b8e823d2540d9a6462 (patch)
tree3475e891f9ac661f0fa6a479c7dabcdf11d55d2f /src/input_common/sdl/sdl_impl.cpp
parentAddress c++20 warning, fix inaccurate range text display when slide == 0 (diff)
downloadyuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.gz
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.bz2
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.lz
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.xz
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.zst
yuzu-8928aa30088c102986d247b8e823d2540d9a6462.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp
index 20a658a26..1853f535d 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -461,7 +461,7 @@ public:
const int axis_x = params.Get("axis_x", 0);
const int axis_y = params.Get("axis_y", 1);
const float deadzone = std::clamp(params.Get("deadzone", 0.0f), 0.0f, .99f);
- const float range = std::clamp(params.Get("range", 0.0f), 0.0f, .99f) + 0.50f;
+ const float range = std::clamp(params.Get("range", 0.0f), 0.50f, 1.50f);
auto joystick = state.GetSDLJoystickByGUID(guid, port);
// This is necessary so accessing GetAxis with axis_x and axis_y won't crash