diff options
| author | 2020-07-15 00:44:08 -0400 | |
|---|---|---|
| committer | 2020-08-10 12:46:14 -0400 | |
| commit | 8928aa30088c102986d247b8e823d2540d9a6462 (patch) | |
| tree | 3475e891f9ac661f0fa6a479c7dabcdf11d55d2f /src/input_common/sdl/sdl_impl.cpp | |
| parent | Address c++20 warning, fix inaccurate range text display when slide == 0 (diff) | |
| download | yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.gz yuzu-8928aa30088c102986d247b8e823d2540d9a6462.tar.xz yuzu-8928aa30088c102986d247b8e823d2540d9a6462.zip | |
undo unnecessary newlines, slider range 50-150
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 |
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: | |||
| 461 | const int axis_x = params.Get("axis_x", 0); | 461 | const int axis_x = params.Get("axis_x", 0); |
| 462 | const int axis_y = params.Get("axis_y", 1); | 462 | const int axis_y = params.Get("axis_y", 1); |
| 463 | const float deadzone = std::clamp(params.Get("deadzone", 0.0f), 0.0f, .99f); | 463 | const float deadzone = std::clamp(params.Get("deadzone", 0.0f), 0.0f, .99f); |
| 464 | const float range = std::clamp(params.Get("range", 0.0f), 0.0f, .99f) + 0.50f; | 464 | const float range = std::clamp(params.Get("range", 0.0f), 0.50f, 1.50f); |
| 465 | auto joystick = state.GetSDLJoystickByGUID(guid, port); | 465 | auto joystick = state.GetSDLJoystickByGUID(guid, port); |
| 466 | 466 | ||
| 467 | // This is necessary so accessing GetAxis with axis_x and axis_y won't crash | 467 | // This is necessary so accessing GetAxis with axis_x and axis_y won't crash |