diff options
| author | 2023-05-05 17:11:53 -0600 | |
|---|---|---|
| committer | 2023-05-05 17:14:20 -0600 | |
| commit | f764223f938ec49e99a662581c18af98661be1af (patch) | |
| tree | 3a2107608121dd7baa73b4916d8abcb1c60f6b8b /src/input_common/input_poller.cpp | |
| parent | Merge pull request #10153 from FernandoS27/a-quickie-fixie (diff) | |
| download | yuzu-f764223f938ec49e99a662581c18af98661be1af.tar.gz yuzu-f764223f938ec49e99a662581c18af98661be1af.tar.xz yuzu-f764223f938ec49e99a662581c18af98661be1af.zip | |
input_common: Add property to invert an axis button
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 8c6a6521a..5c2c4a463 100644 --- a/src/input_common/input_poller.cpp +++ b/src/input_common/input_poller.cpp | |||
| @@ -939,6 +939,7 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateAnalogDevice( | |||
| 939 | .threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f), | 939 | .threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f), |
| 940 | .offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f), | 940 | .offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f), |
| 941 | .inverted = params.Get("invert", "+") == "-", | 941 | .inverted = params.Get("invert", "+") == "-", |
| 942 | .inverted_button = params.Get("inverted", false) != 0, | ||
| 942 | .toggle = params.Get("toggle", false) != 0, | 943 | .toggle = params.Get("toggle", false) != 0, |
| 943 | }; | 944 | }; |
| 944 | input_engine->PreSetController(identifier); | 945 | input_engine->PreSetController(identifier); |