mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 16:52:59 +00:00
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
This commit is contained in:
parent
efa0b7a056
commit
de79897f04
|
@ -191,7 +191,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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue