3
0
Fork 0
forked from suyu/suyu

yuzu: config: Set default range to 95%

This commit is contained in:
Narr the Reg 2022-04-26 18:19:17 -05:00
parent 5295a925d8
commit d2388a2ca8
3 changed files with 6 additions and 6 deletions

View file

@ -732,7 +732,7 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateHatButtonDevice(
std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateStickDevice( std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateStickDevice(
const Common::ParamPackage& params) { const Common::ParamPackage& params) {
const auto deadzone = std::clamp(params.Get("deadzone", 0.15f), 0.0f, 1.0f); const auto deadzone = std::clamp(params.Get("deadzone", 0.15f), 0.0f, 1.0f);
const auto range = std::clamp(params.Get("range", 1.0f), 0.25f, 1.50f); const auto range = std::clamp(params.Get("range", 0.95f), 0.25f, 1.50f);
const auto threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f); const auto threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f);
const PadIdentifier identifier = { const PadIdentifier identifier = {
.guid = Common::UUID{params.Get("guid", "")}, .guid = Common::UUID{params.Get("guid", "")},

View file

@ -988,7 +988,7 @@ void ConfigureInputPlayer::UpdateUI() {
slider_value = static_cast<int>(param.Get("deadzone", 0.15f) * 100); slider_value = static_cast<int>(param.Get("deadzone", 0.15f) * 100);
deadzone_label->setText(tr("Deadzone: %1%").arg(slider_value)); deadzone_label->setText(tr("Deadzone: %1%").arg(slider_value));
deadzone_slider->setValue(slider_value); deadzone_slider->setValue(slider_value);
range_spinbox->setValue(static_cast<int>(param.Get("range", 1.0f) * 100)); range_spinbox->setValue(static_cast<int>(param.Get("range", 0.95f) * 100));
} else { } else {
slider_value = static_cast<int>(param.Get("modifier_scale", 0.5f) * 100); slider_value = static_cast<int>(param.Get("modifier_scale", 0.5f) * 100);
modifier_label->setText(tr("Modifier Range: %1%").arg(slider_value)); modifier_label->setText(tr("Modifier Range: %1%").arg(slider_value));

View file

@ -754,13 +754,13 @@
<string>%</string> <string>%</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>50</number> <number>25</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>150</number> <number>150</number>
</property> </property>
<property name="value"> <property name="value">
<number>100</number> <number>95</number>
</property> </property>
</widget> </widget>
</item> </item>
@ -2985,13 +2985,13 @@
<string>%</string> <string>%</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>50</number> <number>25</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>150</number> <number>150</number>
</property> </property>
<property name="value"> <property name="value">
<number>100</number> <number>95</number>
</property> </property>
</widget> </widget>
</item> </item>