Skip to content

Commit a0bc1ea

Browse files
committed
Fixed swapping buttons not working on Joycons
1 parent 476fb63 commit a0bc1ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

BetterJoyForCemu/Joycon.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ private int ProcessButtonsAndStick(byte[] report_buf) {
509509
}
510510

511511
if (other != null) {
512-
buttons[(int)(!swapButtons ? Button.B : Button.A)] = other.buttons[(int)Button.DPAD_DOWN];
513-
buttons[(int)(!swapButtons ? Button.A : Button.B)] = other.buttons[(int)Button.DPAD_RIGHT];
514-
buttons[(int)(!swapButtons ? Button.X : Button.Y)] = other.buttons[(int)Button.DPAD_UP];
515-
buttons[(int)(!swapButtons ? Button.Y : Button.X)] = other.buttons[(int)Button.DPAD_LEFT];
512+
buttons[(int)(Button.B)] = other.buttons[(int)Button.DPAD_DOWN];
513+
buttons[(int)(Button.A)] = other.buttons[(int)Button.DPAD_RIGHT];
514+
buttons[(int)(Button.X)] = other.buttons[(int)Button.DPAD_UP];
515+
buttons[(int)(Button.Y)] = other.buttons[(int)Button.DPAD_LEFT];
516516

517517
buttons[(int)Button.STICK2] = other.buttons[(int)Button.STICK];
518518
buttons[(int)Button.SHOULDER2_1] = other.buttons[(int)Button.SHOULDER_1];

0 commit comments

Comments
 (0)