yuzu-emu
/
yuzu
Archived
1
0
Fork 0

input_common: Fix directional deadzone values

The hardware tested value is 0.5 which translates to SHRT_MAX / 2
This commit is contained in:
Morph 2020-08-19 04:17:38 -04:00
parent efa0b7a056
commit de79897f04
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ public:
bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override {
const auto [x, y] = GetStatus(); const auto [x, y] = GetStatus();
const float directional_deadzone = 0.4f; const float directional_deadzone = 0.5f;
switch (direction) { switch (direction) {
case Input::AnalogDirection::RIGHT: case Input::AnalogDirection::RIGHT:
return x > directional_deadzone; return x > directional_deadzone;

View File

@ -363,7 +363,7 @@ public:
bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override {
const auto [x, y] = GetStatus(); const auto [x, y] = GetStatus();
const float directional_deadzone = 0.4f; const float directional_deadzone = 0.5f;
switch (direction) { switch (direction) {
case Input::AnalogDirection::RIGHT: case Input::AnalogDirection::RIGHT:
return x > directional_deadzone; return x > directional_deadzone;