summaryrefslogtreecommitdiff
path: root/src/core/hid/input_converter.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/core/hid/input_converter.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/core/hid/input_converter.cpp')
-rw-r--r--src/core/hid/input_converter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index 7cee39a53..a38e3bb3f 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -54,6 +54,7 @@ Common::Input::ButtonStatus TransformToButton(const Common::Input::CallbackStatu
54 case Common::Input::InputType::Analog: 54 case Common::Input::InputType::Analog:
55 status.value = TransformToTrigger(callback).pressed.value; 55 status.value = TransformToTrigger(callback).pressed.value;
56 status.toggle = callback.analog_status.properties.toggle; 56 status.toggle = callback.analog_status.properties.toggle;
57 status.inverted = callback.analog_status.properties.inverted_button;
57 break; 58 break;
58 case Common::Input::InputType::Trigger: 59 case Common::Input::InputType::Trigger:
59 status.value = TransformToTrigger(callback).pressed.value; 60 status.value = TransformToTrigger(callback).pressed.value;