From 51293825f286b114c17d9eb3fb3caed9ce02b882 Mon Sep 17 00:00:00 2001 From: Andrew <117602754+Andrew1Hawes@users.noreply.github.com> Date: Mon, 13 May 2024 00:40:45 +0100 Subject: [PATCH] Explicit support for Motion Plus controllers --- source/utils/input/WPADInput.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/utils/input/WPADInput.h b/source/utils/input/WPADInput.h index e509ca9..5c478a4 100644 --- a/source/utils/input/WPADInput.h +++ b/source/utils/input/WPADInput.h @@ -144,7 +144,8 @@ class WPADInput : public Input { return false; } - if (kpad.extensionType == WPAD_EXT_CORE || kpad.extensionType == WPAD_EXT_NUNCHUK) { + if (kpad.extensionType == WPAD_EXT_CORE || kpad.extensionType == WPAD_EXT_NUNCHUK || + kpad.extensionType == WPAD_EXT_MPLUS || kpad.extensionType == WPAD_EXT_MPLUS_NUNCHUK) { data.buttons_r = remapWiiMoteButtons(kpad.release); data.buttons_h = remapWiiMoteButtons(kpad.hold); data.buttons_d = remapWiiMoteButtons(kpad.trigger); @@ -184,4 +185,4 @@ class WPADInput : public Input { KPADStatus kpad = {}; KPADError kpadError = KPAD_ERROR_UNINITIALIZED; KPADChan channel; -}; \ No newline at end of file +};