diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-28 05:30:44 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-01-30 03:12:58 +0100 |
commit | c318a4c80b4b6eef9f8020f452573ef5c80f6716 (patch) | |
tree | ea031039eb63ef385ceeb0a5c0694baa9e8da8be /src/input_common/helpers/joycon_protocol/ringcon.cpp | |
parent | input_common: joycon: Fill missing enum data (diff) | |
download | yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar.gz yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar.bz2 yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar.lz yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar.xz yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.tar.zst yuzu-c318a4c80b4b6eef9f8020f452573ef5c80f6716.zip |
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/ringcon.cpp')
-rw-r--r-- | src/input_common/helpers/joycon_protocol/ringcon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/helpers/joycon_protocol/ringcon.cpp b/src/input_common/helpers/joycon_protocol/ringcon.cpp index 3c2ca4379..190cef812 100644 --- a/src/input_common/helpers/joycon_protocol/ringcon.cpp +++ b/src/input_common/helpers/joycon_protocol/ringcon.cpp @@ -70,7 +70,7 @@ DriverResult RingConProtocol::StartRingconPolling() { DriverResult RingConProtocol::IsRingConnected(bool& is_connected) { LOG_DEBUG(Input, "IsRingConnected"); constexpr std::size_t max_tries = 28; - std::vector<u8> output; + SubCommandResponse output{}; std::size_t tries = 0; is_connected = false; @@ -84,7 +84,7 @@ DriverResult RingConProtocol::IsRingConnected(bool& is_connected) { if (tries++ >= max_tries) { return DriverResult::NoDeviceDetected; } - } while (output[16] != static_cast<u8>(ExternalDeviceId::RingController)); + } while (output.external_device_id != ExternalDeviceId::RingController); is_connected = true; return DriverResult::Success; |