undo unnecessary newlines, slider range 50-150

This commit is contained in:
Ameer 2020-07-15 00:44:08 -04:00 committed by ameerj
parent 504095cea9
commit 8928aa3008
3 changed files with 5 additions and 6 deletions

View file

@ -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