Commit 068815ef authored by Jiri Kosina's avatar Jiri Kosina
Browse files

Merge branch 'for-6.14/nintendo' into for-linus

- support for MD/GEN 6B controller (Ryan McClelland)
parents cf6473b9 03ece950
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -787,7 +787,7 @@ config HID_NINTENDO
	Adds support for the Nintendo Switch Joy-Cons, NSO, Pro Controller.
	All controllers support bluetooth, and the Pro Controller also supports
	its USB mode. This also includes support for the Nintendo Switch Online
	Controllers which include the Genesis, SNES, and N64 controllers.
	Controllers which include the NES, Genesis, SNES, and N64 controllers.

	To compile this driver as a module, choose M here: the
	module will be called hid-nintendo.
+6 −10
Original line number Diff line number Diff line
@@ -456,14 +456,13 @@ static const struct joycon_ctlr_button_mapping snescon_button_mappings[] = {
	{ /* sentinel */ },
};

/*
 * "A", "B", and "C" are mapped positionally, rather than by label (e.g., "A"
 * gets assigned to BTN_EAST instead of BTN_A).
 */
static const struct joycon_ctlr_button_mapping gencon_button_mappings[] = {
	{ BTN_SOUTH,	JC_BTN_A,	},
	{ BTN_EAST,	JC_BTN_B,	},
	{ BTN_WEST,	JC_BTN_R,	},
	{ BTN_A,	JC_BTN_A,	},
	{ BTN_B,	JC_BTN_B,	},
	{ BTN_C,	JC_BTN_R,	},
	{ BTN_X,	JC_BTN_X,	}, /* MD/GEN 6B Only */
	{ BTN_Y,	JC_BTN_Y,	}, /* MD/GEN 6B Only */
	{ BTN_Z,	JC_BTN_L,	}, /* MD/GEN 6B Only */
	{ BTN_SELECT,	JC_BTN_ZR,	},
	{ BTN_START,	JC_BTN_PLUS,	},
	{ BTN_MODE,	JC_BTN_HOME,	},
@@ -471,9 +470,6 @@ static const struct joycon_ctlr_button_mapping gencon_button_mappings[] = {
	{ /* sentinel */ },
};

/*
 * N64's C buttons get assigned to d-pad directions and registered as buttons.
 */
static const struct joycon_ctlr_button_mapping n64con_button_mappings[] = {
	{ BTN_A,		JC_BTN_A,	},
	{ BTN_B,		JC_BTN_B,	},