Remove UI changes

This PR is now only the Analog devices handling the range value defaulting at 100%
This commit is contained in:
ameerj 2020-08-10 12:39:42 -04:00
parent ac3cdc1741
commit 5d4750541b
5 changed files with 5 additions and 86 deletions

View file

@ -233,7 +233,7 @@ std::unique_ptr<Input::AnalogDevice> GCAnalogFactory::Create(const Common::Param
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);
return std::make_unique<GCAnalog>(port, axis_x, axis_y, deadzone, adapter.get(), range);
}