diff options
| author | 2020-08-19 04:17:38 -0400 | |
|---|---|---|
| committer | 2020-08-26 02:32:32 -0400 | |
| commit | de79897f042aa7d3cacf8579078195cca559f62f (patch) | |
| tree | 03675441de49990f9f5c0f8b935670d9da89c087 /src/input_common/sdl/sdl_impl.cpp | |
| parent | Address feedback (diff) | |
| download | yuzu-de79897f042aa7d3cacf8579078195cca559f62f.tar.gz yuzu-de79897f042aa7d3cacf8579078195cca559f62f.tar.xz yuzu-de79897f042aa7d3cacf8579078195cca559f62f.zip | |
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index dec7540e2..7605c884d 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -363,7 +363,7 @@ public: | |||
| 363 | 363 | ||
| 364 | bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { | 364 | bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { |
| 365 | const auto [x, y] = GetStatus(); | 365 | const auto [x, y] = GetStatus(); |
| 366 | const float directional_deadzone = 0.4f; | 366 | const float directional_deadzone = 0.5f; |
| 367 | switch (direction) { | 367 | switch (direction) { |
| 368 | case Input::AnalogDirection::RIGHT: | 368 | case Input::AnalogDirection::RIGHT: |
| 369 | return x > directional_deadzone; | 369 | return x > directional_deadzone; |