Skip to content

Commit

Permalink
Explicit support for Motion Plus controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew1Hawes authored and Maschell committed Jul 5, 2024
1 parent f4d31ee commit 5129382
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/utils/input/WPADInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -184,4 +185,4 @@ class WPADInput : public Input {
KPADStatus kpad = {};
KPADError kpadError = KPAD_ERROR_UNINITIALIZED;
KPADChan channel;
};
};

0 comments on commit 5129382

Please # to comment.