summaryrefslogtreecommitdiffstats
path: root/src/core/hid/input_converter.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:20:53 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-09-06 18:21:28 +0200
commit2898be69f414a2735b8693c58e039097853f5ec7 (patch)
treedc91ebee52e562781cbe1f58cdeedb4ba468438f /src/core/hid/input_converter.cpp
parentMerge pull request #8843 from Kelebek1/SILENCE_WENCH (diff)
downloadyuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.gz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.bz2
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.lz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.xz
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.tar.zst
yuzu-2898be69f414a2735b8693c58e039097853f5ec7.zip
Diffstat (limited to 'src/core/hid/input_converter.cpp')
-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;