1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-28 15:06:31 -05:00

input_common: Add property to invert an axis button

This commit is contained in:
Narr the Reg
2023-05-05 17:11:53 -06:00
parent 46e835f2d6
commit f017335fef
6 changed files with 15 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ Common::Input::ButtonStatus TransformToButton(const Common::Input::CallbackStatu
case Common::Input::InputType::Analog:
status.value = TransformToTrigger(callback).pressed.value;
status.toggle = callback.analog_status.properties.toggle;
status.inverted = callback.analog_status.properties.inverted_button;
break;
case Common::Input::InputType::Trigger:
status.value = TransformToTrigger(callback).pressed.value;