diff options
| author | 2022-09-09 20:54:01 -0700 | |
|---|---|---|
| committer | 2022-09-09 20:54:01 -0700 | |
| commit | a967c41fa07c39b47aa8401305dfa0c8a9478367 (patch) | |
| tree | 8e3b0077cf8bc7ae0acbca3459d5e43bb3b9cec4 /src/input_common/input_poller.cpp | |
| parent | Merge pull request #8819 from liamwhite/cash-money (diff) | |
| parent | yuzu: input: fix invert symbol on axis and order options alphabetically (diff) | |
| download | yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.gz yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.xz yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.zip | |
Merge pull request #8864 from german77/toggle_analog
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 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( | |||
| 824 | .threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f), | 824 | .threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f), |
| 825 | .offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f), | 825 | .offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f), |
| 826 | .inverted = params.Get("invert", "+") == "-", | 826 | .inverted = params.Get("invert", "+") == "-", |
| 827 | .toggle = static_cast<bool>(params.Get("toggle", false)), | ||
| 827 | }; | 828 | }; |
| 828 | input_engine->PreSetController(identifier); | 829 | input_engine->PreSetController(identifier); |
| 829 | input_engine->PreSetAxis(identifier, axis); | 830 | input_engine->PreSetAxis(identifier, axis); |