Skip to content

Commit

Permalink
Fix Wii U shoulder mapping for black/gray
Browse files Browse the repository at this point in the history
  • Loading branch information
libertyernie committed Mar 30, 2024
1 parent 09e17ff commit f66c433
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion loader/source/ppc/PADReadGC/source/PADReadGC.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ u32 PADRead(u32 calledByGame)

if (drcbutton & WIIDRC_BUTTON_MINUS)
button |= PAD_TRIGGER_Z;
#elif defined LI_SHOULDER_DIRECT
#elif defined LI_SHOULDER_BYNAME
if (drcbutton & WIIDRC_BUTTON_L) {
button |= PAD_TRIGGER_L;
Pad[WiiUGamepadSlot].triggerLeft = 0xFF;
Expand All @@ -513,6 +513,28 @@ u32 PADRead(u32 calledByGame)

if (drcbutton & WIIDRC_BUTTON_ZR)
button |= PAD_TRIGGER_Z;
#elif defined LI_SHOULDER_BYPOSITION
if (drcbutton & WIIDRC_BUTTON_ZL) {
button |= PAD_TRIGGER_L;
Pad[WiiUGamepadSlot].triggerLeft = 0xFF;
}
else {
Pad[WiiUGamepadSlot].triggerLeft = 0;
}

if (drcbutton & WIIDRC_BUTTON_ZR) {
button |= PAD_TRIGGER_R;
Pad[WiiUGamepadSlot].triggerRight = 0xFF;
}
else {
Pad[WiiUGamepadSlot].triggerRight = 0;
}

if (drcbutton & WIIDRC_BUTTON_L)
button |= PAD_BUTTON_Y;

if (drcbutton & WIIDRC_BUTTON_R)
button |= PAD_TRIGGER_Z;
#else
//also sets left analog trigger
if(drcbutton & WIIDRC_BUTTON_ZL)
Expand Down

0 comments on commit f66c433

Please sign in to comment.