summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-10 05:54:01 +0200
committerGitHub <noreply@github.com>2022-09-10 05:54:01 +0200
commita967c41fa07c39b47aa8401305dfa0c8a9478367 (patch)
tree8e3b0077cf8bc7ae0acbca3459d5e43bb3b9cec4 /src/input_common
parentMerge pull request #8819 from liamwhite/cash-money (diff)
parentyuzu: input: fix invert symbol on axis and order options alphabetically (diff)
downloadyuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.gz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.bz2
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.lz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.xz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.zst
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/input_poller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_common/input_poller.cpp b/src/input_common/input_poller.cpp
index 133422d5c..ffb9b945e 100644
--- a/src/input_common/input_poller.cpp
+++ b/src/input_common/input_poller.cpp
@@ -824,6 +824,7 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateAnalogDevice(
.threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f),
.offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f),
.inverted = params.Get("invert", "+") == "-",
+ .toggle = static_cast<bool>(params.Get("toggle", false)),
};
input_engine->PreSetController(identifier);
input_engine->PreSetAxis(identifier, axis);