summaryrefslogtreecommitdiff
path: root/src/input_common/input_poller.cpp
diff options
context:
space:
mode:
authorGravatar Narr the Reg2023-05-05 17:11:53 -0600
committerGravatar Narr the Reg2023-05-05 17:18:35 -0600
commitf017335fef95d2cecc0fcda185f0e59cc1945101 (patch)
tree3c119e1e6f51506e039a519b0baf245ae9b41747 /src/input_common/input_poller.cpp
parentyuzu: Add motion preview to controller input (diff)
downloadyuzu-f017335fef95d2cecc0fcda185f0e59cc1945101.tar.gz
yuzu-f017335fef95d2cecc0fcda185f0e59cc1945101.tar.xz
yuzu-f017335fef95d2cecc0fcda185f0e59cc1945101.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.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 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);