diff options
author | Ameer <aj662@drexel.edu> | 2020-07-13 19:41:30 +0200 |
---|---|---|
committer | ameerj <aj662@drexel.edu> | 2020-08-10 18:46:14 +0200 |
commit | 504095cea9bc5e8710dc7846c7706614fa959641 (patch) | |
tree | 79311d92fb031db973d957230946c67778fc3ff2 | |
parent | Add range slider for analog sticks (diff) | |
download | yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar.gz yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar.bz2 yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar.lz yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar.xz yuzu-504095cea9bc5e8710dc7846c7706614fa959641.tar.zst yuzu-504095cea9bc5e8710dc7846c7706614fa959641.zip |
-rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index d60f13ffb..2ef952b67 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp @@ -611,10 +611,10 @@ void ConfigureInputPlayer::UpdateButtonLabels() { if (!param.Has("range")) { param.Set("range", 0.50f); } - + // QtSlider returns values from 0.0-0.99. We want range to be from 50% to 150% analog_stick_range->setValue(static_cast<int>(param.Get("range", 0.1f) * 100)); if (analog_stick_range->value() == 0) { - analog_stick_range_label->setText(tr("Range: 0%")); + analog_stick_range_label->setText(tr("Range: 50%")); } } else { if (!param.Has("modifier_scale")) { |