From 158c4e17a28f25173bd9a5dabb7018d37ac958d9 Mon Sep 17 00:00:00 2001 From: Michael Schroder Date: Tue, 9 Sep 2025 12:05:06 -0700 Subject: [PATCH] input: Add support for Wii Remote Plus by handling the inactive MotionPlus extension events (#1683) --- src/input/api/Wiimote/WiimoteControllerProvider.cpp | 3 +++ src/input/api/Wiimote/WiimoteMessages.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/input/api/Wiimote/WiimoteControllerProvider.cpp b/src/input/api/Wiimote/WiimoteControllerProvider.cpp index c2454319..b55c9cd4 100644 --- a/src/input/api/Wiimote/WiimoteControllerProvider.cpp +++ b/src/input/api/Wiimote/WiimoteControllerProvider.cpp @@ -344,6 +344,9 @@ void WiimoteControllerProvider::reader_thread() new_state.m_extension = {}; request_status(index); break; + case kExtensionMotionPlusInactive: + cemuLog_logDebug(LogType::Force,"Extension Type Received: Inactive MotionPlus"); + break; default: cemuLog_logDebug(LogType::Force,"Unknown extension: {:#x}", be_type.value()); new_state.m_extension = {}; diff --git a/src/input/api/Wiimote/WiimoteMessages.h b/src/input/api/Wiimote/WiimoteMessages.h index 32dd4658..1ab09183 100644 --- a/src/input/api/Wiimote/WiimoteMessages.h +++ b/src/input/api/Wiimote/WiimoteMessages.h @@ -53,6 +53,7 @@ enum ExtensionType : uint64 kExtensionDrums = 0x0100A4200103, kExtensionBalanceBoard = 0x2A2C, + kExtensionMotionPlusInactive = 0xa4200005, kExtensionMotionPlus = 0xa6200005, kExtensionPartialyInserted = 0xffffffffffff,