Skip to content

Commit

Permalink
change defaults to A => B, X => Y, B => A, Y => X
Browse files Browse the repository at this point in the history
* fixes #25
  • Loading branch information
sam0x17 committed Mar 29, 2019
1 parent 67fe1ef commit 2260bb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ mappings are shown below:

| Joy-Con Button | Xbox Button |
|--------------------|----------------|
| A | A |
| B | B |
| X | X |
| Y | Y |
| A | B |
| B | A |
| X | Y |
| Y | X |
| Left Trigger | Left Trigger |
| Right Trigger | Right Trigger |
| Left Shoulder | Left Shoulder |
Expand Down
8 changes: 4 additions & 4 deletions XJoy/XJoy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,16 +389,16 @@ void process_button(JOYCON_REGION region, JOYCON_BUTTON button) {
case RIGHT_BUTTONS:
switch(button) {
case R_BUT_A:
right_buttons = right_buttons | XUSB_GAMEPAD_A;
right_buttons = right_buttons | XUSB_GAMEPAD_B;
break;
case R_BUT_B:
right_buttons = right_buttons | XUSB_GAMEPAD_B;
right_buttons = right_buttons | XUSB_GAMEPAD_A;
break;
case R_BUT_X:
right_buttons = right_buttons | XUSB_GAMEPAD_X;
right_buttons = right_buttons | XUSB_GAMEPAD_Y;
break;
case R_BUT_Y:
right_buttons = right_buttons | XUSB_GAMEPAD_Y;
right_buttons = right_buttons | XUSB_GAMEPAD_X;
break;
case R_BUT_SL:
right_buttons = right_buttons | XUSB_GAMEPAD_B;
Expand Down

0 comments on commit 2260bb9

Please sign in to comment.