diff options
| author | 2021-10-20 23:18:04 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:25 -0600 | |
| commit | 85052b8662d9512077780f717fb2e168390ed705 (patch) | |
| tree | 0d966f3f0fdcb7dbe85fe6e2ca83cf25c492ae4c /src/input_common/drivers/gc_adapter.cpp | |
| parent | configuration: Migrate controller settings to emulated controller (diff) | |
| download | yuzu-85052b8662d9512077780f717fb2e168390ed705.tar.gz yuzu-85052b8662d9512077780f717fb2e168390ed705.tar.xz yuzu-85052b8662d9512077780f717fb2e168390ed705.zip | |
service/hid: Fix gesture input
Diffstat (limited to 'src/input_common/drivers/gc_adapter.cpp')
| -rw-r--r-- | src/input_common/drivers/gc_adapter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cpp index 4fb6ab5af..25b66f528 100644 --- a/src/input_common/drivers/gc_adapter.cpp +++ b/src/input_common/drivers/gc_adapter.cpp | |||
| @@ -209,7 +209,7 @@ void GCAdapter::UpdateStateAxes(std::size_t port, const AdapterPayload& adapter_ | |||
| 209 | pads[port].axis_origin[index] = axis_value; | 209 | pads[port].axis_origin[index] = axis_value; |
| 210 | pads[port].reset_origin_counter++; | 210 | pads[port].reset_origin_counter++; |
| 211 | } | 211 | } |
| 212 | const f32 axis_status = (axis_value - pads[port].axis_origin[index]) / 110.0f; | 212 | const f32 axis_status = (axis_value - pads[port].axis_origin[index]) / 100.0f; |
| 213 | SetAxis(pads[port].identifier, static_cast<int>(index), axis_status); | 213 | SetAxis(pads[port].identifier, static_cast<int>(index), axis_status); |
| 214 | } | 214 | } |
| 215 | } | 215 | } |
| @@ -530,7 +530,7 @@ std::string GCAdapter::GetUIName(const Common::ParamPackage& params) const { | |||
| 530 | return fmt::format("Button {}", GetUIButtonName(params)); | 530 | return fmt::format("Button {}", GetUIButtonName(params)); |
| 531 | } | 531 | } |
| 532 | if (params.Has("axis")) { | 532 | if (params.Has("axis")) { |
| 533 | return fmt::format("Axis {}", params.Get("axis",0)); | 533 | return fmt::format("Axis {}", params.Get("axis", 0)); |
| 534 | } | 534 | } |
| 535 | 535 | ||
| 536 | return "Bad GC Adapter"; | 536 | return "Bad GC Adapter"; |