aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-08-10 12:39:42 -0400
committerameerj <aj662@drexel.edu>2020-08-10 12:46:14 -0400
commit5d4750541b684f3a366bef4d7da5592390f7f35a (patch)
tree3c47b3398ec56c3d7d752449e5bc7f71b4703265 /src/input_common/sdl/sdl_impl.cpp
parentac3cdc1741fcf937b09c066836afb045547d1562 (diff)
Remove UI changes
This PR is now only the Analog devices handling the range value defaulting at 100%
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
-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 1853f535d4..d76c279d32 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.50f, 1.50f);
+ const float range = std::clamp(params.Get("range", 1.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