Skip to content

Commit 44afc10

Browse files
XenuIsWatchingJiri Kosina
authored andcommitted
HID: nintendo: fix gencon button events map
This fixes the button event map to match the 3-button recommendation as well as the redundant 'z' in the button map events for the Sega MD/Gen 6 Button. Signed-off-by: Ryan McClelland <[email protected]> Reviewed-by: Daniel J. Ogorchock <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 0c28e4d commit 44afc10

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/hid/hid-nintendo.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ static const struct joycon_ctlr_button_mapping snescon_button_mappings[] = {
457457
};
458458

459459
static const struct joycon_ctlr_button_mapping gencon_button_mappings[] = {
460-
{ BTN_A, JC_BTN_A, },
461-
{ BTN_B, JC_BTN_B, },
462-
{ BTN_C, JC_BTN_R, },
463-
{ BTN_X, JC_BTN_X, }, /* MD/GEN 6B Only */
464-
{ BTN_Y, JC_BTN_Y, }, /* MD/GEN 6B Only */
465-
{ BTN_Z, JC_BTN_L, }, /* MD/GEN 6B Only */
466-
{ BTN_SELECT, JC_BTN_ZR, },
460+
{ BTN_WEST, JC_BTN_A, }, /* A */
461+
{ BTN_SOUTH, JC_BTN_B, }, /* B */
462+
{ BTN_EAST, JC_BTN_R, }, /* C */
463+
{ BTN_TL, JC_BTN_X, }, /* X MD/GEN 6B Only */
464+
{ BTN_NORTH, JC_BTN_Y, }, /* Y MD/GEN 6B Only */
465+
{ BTN_TR, JC_BTN_L, }, /* Z MD/GEN 6B Only */
466+
{ BTN_SELECT, JC_BTN_ZR, }, /* Mode */
467467
{ BTN_START, JC_BTN_PLUS, },
468468
{ BTN_MODE, JC_BTN_HOME, },
469469
{ BTN_Z, JC_BTN_CAP, },

0 commit comments

Comments
 (0)