summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-10 05:54:01 +0200
committerGitHub <noreply@github.com>2022-09-10 05:54:01 +0200
commita967c41fa07c39b47aa8401305dfa0c8a9478367 (patch)
tree8e3b0077cf8bc7ae0acbca3459d5e43bb3b9cec4 /src/core
parentMerge pull request #8819 from liamwhite/cash-money (diff)
parentyuzu: input: fix invert symbol on axis and order options alphabetically (diff)
downloadyuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.gz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.bz2
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.lz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.xz
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.tar.zst
yuzu-a967c41fa07c39b47aa8401305dfa0c8a9478367.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hid/input_converter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index 68d143a01..52fb69e9c 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -52,6 +52,9 @@ Common::Input::ButtonStatus TransformToButton(const Common::Input::CallbackStatu
Common::Input::ButtonStatus status{};
switch (callback.type) {
case Common::Input::InputType::Analog:
+ status.value = TransformToTrigger(callback).pressed.value;
+ status.toggle = callback.analog_status.properties.toggle;
+ break;
case Common::Input::InputType::Trigger:
status.value = TransformToTrigger(callback).pressed.value;
break;