summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-10-09 19:49:07 +0200
committergerman77 <juangerman-13@hotmail.com>2022-10-09 19:49:18 +0200
commit224a19758efff450b78dbba43c80f73e55599074 (patch)
treef4fc806374474298f65b847521027a5aba540bd8 /src/core
parentMerge pull request #9016 from liamwhite/drunken-schedule (diff)
downloadyuzu-224a19758efff450b78dbba43c80f73e55599074.tar
yuzu-224a19758efff450b78dbba43c80f73e55599074.tar.gz
yuzu-224a19758efff450b78dbba43c80f73e55599074.tar.bz2
yuzu-224a19758efff450b78dbba43c80f73e55599074.tar.lz
yuzu-224a19758efff450b78dbba43c80f73e55599074.tar.xz
yuzu-224a19758efff450b78dbba43c80f73e55599074.tar.zst
yuzu-224a19758efff450b78dbba43c80f73e55599074.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hid/input_converter.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index fe9915abe..5d8b75b50 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -277,7 +277,10 @@ Common::Input::CameraStatus TransformToCamera(const Common::Input::CallbackStatu
Common::Input::CameraStatus camera{};
switch (callback.type) {
case Common::Input::InputType::IrSensor:
- camera = callback.camera_status;
+ camera = {
+ .format = callback.camera_status,
+ .data = callback.raw_data,
+ };
break;
default:
LOG_ERROR(Input, "Conversion from type {} to camera not implemented", callback.type);
@@ -291,7 +294,10 @@ Common::Input::NfcStatus TransformToNfc(const Common::Input::CallbackStatus& cal
Common::Input::NfcStatus nfc{};
switch (callback.type) {
case Common::Input::InputType::Nfc:
- return callback.nfc_status;
+ nfc = {
+ .state = callback.nfc_status,
+ .data = callback.raw_data,
+ };
break;
default:
LOG_ERROR(Input, "Conversion from type {} to NFC not implemented", callback.type);