Add support for Wii Remote Plus by handling the inactive MotionPlus extension events

This commit is contained in:
Michael Schroder 2025-09-08 18:06:18 -07:00
parent 5a3809be16
commit 82a1686780
2 changed files with 4 additions and 0 deletions

View file

@ -344,6 +344,9 @@ void WiimoteControllerProvider::reader_thread()
new_state.m_extension = {}; new_state.m_extension = {};
request_status(index); request_status(index);
break; break;
case kExtensionMotionPlusInactive:
cemuLog_logDebug(LogType::Force,"Extension Type Received: Inactive MotionPlus");
break;
default: default:
cemuLog_logDebug(LogType::Force,"Unknown extension: {:#x}", be_type.value()); cemuLog_logDebug(LogType::Force,"Unknown extension: {:#x}", be_type.value());
new_state.m_extension = {}; new_state.m_extension = {};

View file

@ -53,6 +53,7 @@ enum ExtensionType : uint64
kExtensionDrums = 0x0100A4200103, kExtensionDrums = 0x0100A4200103,
kExtensionBalanceBoard = 0x2A2C, kExtensionBalanceBoard = 0x2A2C,
kExtensionMotionPlusInactive = 0xa4200005,
kExtensionMotionPlus = 0xa6200005, kExtensionMotionPlus = 0xa6200005,
kExtensionPartialyInserted = 0xffffffffffff, kExtensionPartialyInserted = 0xffffffffffff,