summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-05-03 23:36:39 +0200
committerGitHub <noreply@github.com>2022-05-03 23:36:39 +0200
commitb06f9f2606b7e2965d17e9df4b9a738b425b3cd8 (patch)
tree6d4565f25984a5325cc2c13c69600daf44452b31 /src/input_common
parentMerge pull request #8296 from Morph1984/result-range (diff)
parentyuzu: Config allow to delete single axis directions when buttons are mapped to a stick (diff)
downloadyuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar.gz
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar.bz2
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar.lz
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar.xz
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.tar.zst
yuzu-b06f9f2606b7e2965d17e9df4b9a738b425b3cd8.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/input_poller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/input_poller.cpp b/src/input_common/input_poller.cpp
index 99d6c3cd6..49ccb4422 100644
--- a/src/input_common/input_poller.cpp
+++ b/src/input_common/input_poller.cpp
@@ -732,7 +732,7 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateHatButtonDevice(
std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateStickDevice(
const Common::ParamPackage& params) {
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 PadIdentifier identifier = {
.guid = Common::UUID{params.Get("guid", "")},