diff options
author | bunnei <bunneidev@gmail.com> | 2022-05-03 23:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 23:36:39 +0200 |
commit | b06f9f2606b7e2965d17e9df4b9a738b425b3cd8 (patch) | |
tree | 6d4565f25984a5325cc2c13c69600daf44452b31 /src/core/hid | |
parent | Merge pull request #8296 from Morph1984/result-range (diff) | |
parent | yuzu: Config allow to delete single axis directions when buttons are mapped to a stick (diff) | |
download | yuzu-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/core/hid')
-rw-r--r-- | src/core/hid/input_converter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp index ee228e39b..3c26260f3 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/core/hid/input_converter.cpp @@ -327,7 +327,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogS raw_y += properties_y.offset; // Apply X scale correction from offset - if (std::abs(properties_x.offset) < 0.5f) { + if (std::abs(properties_x.offset) < 0.75f) { if (raw_x > 0) { raw_x /= 1 + properties_x.offset; } else { @@ -336,7 +336,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogS } // Apply Y scale correction from offset - if (std::abs(properties_y.offset) < 0.5f) { + if (std::abs(properties_y.offset) < 0.75f) { if (raw_y > 0) { raw_y /= 1 + properties_y.offset; } else { |