Skip to content

Commit 158c4e1

Browse files
authored
input: Add support for Wii Remote Plus by handling the inactive MotionPlus extension events (#1683)
1 parent 5a3809b commit 158c4e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/input/api/Wiimote/WiimoteControllerProvider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ void WiimoteControllerProvider::reader_thread()
344344
new_state.m_extension = {};
345345
request_status(index);
346346
break;
347+
case kExtensionMotionPlusInactive:
348+
cemuLog_logDebug(LogType::Force,"Extension Type Received: Inactive MotionPlus");
349+
break;
347350
default:
348351
cemuLog_logDebug(LogType::Force,"Unknown extension: {:#x}", be_type.value());
349352
new_state.m_extension = {};

src/input/api/Wiimote/WiimoteMessages.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ enum ExtensionType : uint64
5353
kExtensionDrums = 0x0100A4200103,
5454
kExtensionBalanceBoard = 0x2A2C,
5555

56+
kExtensionMotionPlusInactive = 0xa4200005,
5657
kExtensionMotionPlus = 0xa6200005,
5758

5859
kExtensionPartialyInserted = 0xffffffffffff,

0 commit comments

Comments
 (0)