aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-08-19 04:17:38 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-08-26 02:32:32 -0400
commit5e4f03f6631ecccc139b6e7aa18946c2e19130a8 (patch)
tree03675441de49990f9f5c0f8b935670d9da89c087 /src/input_common/sdl/sdl_impl.cpp
parent24ce5441206cf4947a879297b88b55a2222c6309 (diff)
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp2
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 dec7540e2f..7605c884dc 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -363,7 +363,7 @@ public:
bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override {
const auto [x, y] = GetStatus();
- const float directional_deadzone = 0.4f;
+ const float directional_deadzone = 0.5f;
switch (direction) {
case Input::AnalogDirection::RIGHT:
return x > directional_deadzone;