diff options
author | german77 <juangerman-13@hotmail.com> | 2023-05-09 08:30:25 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-05-09 08:32:53 +0200 |
commit | cb1487d77468c7dd7ca49779d9f9010ed925e3fc (patch) | |
tree | a69db23a78becd18acc75630da1929b086c44181 /src/input_common/helpers/joycon_protocol/joycon_types.h | |
parent | Merge pull request #10205 from jbeich/freebsd (diff) | |
download | yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar.gz yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar.bz2 yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar.lz yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar.xz yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.tar.zst yuzu-cb1487d77468c7dd7ca49779d9f9010ed925e3fc.zip |
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/joycon_types.h')
-rw-r--r-- | src/input_common/helpers/joycon_protocol/joycon_types.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input_common/helpers/joycon_protocol/joycon_types.h b/src/input_common/helpers/joycon_protocol/joycon_types.h index dcac0e422..b03143e04 100644 --- a/src/input_common/helpers/joycon_protocol/joycon_types.h +++ b/src/input_common/helpers/joycon_protocol/joycon_types.h @@ -575,7 +575,6 @@ struct NFCPollingCommandData { static_assert(sizeof(NFCPollingCommandData) == 0x05, "NFCPollingCommandData is an invalid size"); struct NFCRequestState { - MCUSubCommand sub_command; NFCReadCommand command_argument; u8 packet_id; INSERT_PADDING_BYTES(0x1); @@ -587,6 +586,7 @@ struct NFCRequestState { NFCPollingCommandData nfc_polling; }; u8 crc; + INSERT_PADDING_BYTES(0x1); }; static_assert(sizeof(NFCRequestState) == 0x26, "NFCRequestState is an invalid size"); @@ -659,7 +659,10 @@ struct SubCommandPacket { OutputReport output_report; u8 packet_counter; INSERT_PADDING_BYTES(0x8); // This contains vibration data - SubCommand sub_command; + union { + SubCommand sub_command; + MCUSubCommand mcu_sub_command; + }; std::array<u8, 0x26> command_data; }; static_assert(sizeof(SubCommandPacket) == 0x31, "SubCommandPacket is an invalid size"); |