summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:20:53 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:21:28 +0200
commit2898be69f414a2735b8693c58e039097853f5ec7 (patch)
treedc91ebee52e562781cbe1f58cdeedb4ba468438f /src/input_common
parentMerge pull request #8843 from Kelebek1/SILENCE_WENCH (diff)
downloadyuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.gz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.bz2
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.lz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.xz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.zst
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.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);