summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/gc_adapter.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-16 05:26:08 +0100
committerGitHub <noreply@github.com>2024-01-16 05:26:08 +0100
commit2c29c2b8dd280d0aeff432569f324cd85d83b415 (patch)
treee5552e7f82ccb37b611a3a577f94c91f9c813320 /src/input_common/drivers/gc_adapter.cpp
parentMerge pull request #12681 from t895/stick-toggles (diff)
parentFix typos in master (diff)
downloadyuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar.gz
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar.bz2
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar.lz
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar.xz
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.tar.zst
yuzu-2c29c2b8dd280d0aeff432569f324cd85d83b415.zip
Diffstat (limited to 'src/input_common/drivers/gc_adapter.cpp')
-rw-r--r--src/input_common/drivers/gc_adapter.cpp4
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 1ff296af5..f1184a5fa 100644
--- a/src/input_common/drivers/gc_adapter.cpp
+++ b/src/input_common/drivers/gc_adapter.cpp
@@ -451,11 +451,11 @@ ButtonMapping GCAdapter::GetButtonMappingForDevice(const Common::ParamPackage& p
std::tuple{Settings::NativeButton::ZL, PadButton::TriggerL, PadAxes::TriggerLeft},
{Settings::NativeButton::ZR, PadButton::TriggerR, PadAxes::TriggerRight},
};
- for (const auto& [switch_button, gcadapter_buton, gcadapter_axis] : switch_to_gcadapter_axis) {
+ for (const auto& [switch_button, gcadapter_button, gcadapter_axis] : switch_to_gcadapter_axis) {
Common::ParamPackage button_params{};
button_params.Set("engine", GetEngineName());
button_params.Set("port", params.Get("port", 0));
- button_params.Set("button", static_cast<s32>(gcadapter_buton));
+ button_params.Set("button", static_cast<s32>(gcadapter_button));
button_params.Set("axis", static_cast<s32>(gcadapter_axis));
button_params.Set("threshold", 0.5f);
button_params.Set("range", 1.9f);