diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 11:20:53 -0500 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-09-06 11:21:28 -0500 |
commit | 2898be69f414a2735b8693c58e039097853f5ec7 (patch) | |
tree | dc91ebee52e562781cbe1f58cdeedb4ba468438f /src/input_common/input_poller.cpp | |
parent | 199f77b92f6e0f47844e44dcc5ef1f4dc299824c (diff) |
input_common: Add support for analog toggle
Diffstat (limited to 'src/input_common/input_poller.cpp')
-rw-r--r-- | src/input_common/input_poller.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_common/input_poller.cpp b/src/input_common/input_poller.cpp index 133422d5cd..ffb9b945e5 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); |