summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-05-18 06:17:16 +0200
committergerman77 <juangerman-13@hotmail.com>2023-05-22 05:09:20 +0200
commitfdb2002f77de6af19cc7f526b2e7540c329161c3 (patch)
tree6bcb2ca55810c05d15a561e2fa0bc0a6c1a9175a /src/input_common/drivers
parentMerge pull request #10344 from german77/pro-amiibo (diff)
downloadyuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar.gz
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar.bz2
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar.lz
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar.xz
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.tar.zst
yuzu-fdb2002f77de6af19cc7f526b2e7540c329161c3.zip
Diffstat (limited to 'src/input_common/drivers')
-rw-r--r--src/input_common/drivers/joycon.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp
index 653862a72..b2b5677c8 100644
--- a/src/input_common/drivers/joycon.cpp
+++ b/src/input_common/drivers/joycon.cpp
@@ -291,9 +291,13 @@ Common::Input::NfcState Joycons::SupportsNfc(const PadIdentifier& identifier_) c
return Common::Input::NfcState::Success;
};
-Common::Input::NfcState Joycons::WriteNfcData(const PadIdentifier& identifier_,
+Common::Input::NfcState Joycons::WriteNfcData(const PadIdentifier& identifier,
const std::vector<u8>& data) {
- return Common::Input::NfcState::NotSupported;
+ auto handle = GetHandle(identifier);
+ if (handle->WriteNfcData(data) != Joycon::DriverResult::Success) {
+ return Common::Input::NfcState::WriteFailed;
+ }
+ return Common::Input::NfcState::Success;
};
Common::Input::DriverResult Joycons::SetPollingMode(const PadIdentifier& identifier,