* [PATCH] Input: xpad - add OneXPlayer Gamepad
@ 2021-11-13 11:27 Benjamin Valentin
2021-11-14 1:08 ` Cameron Gutman
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Valentin @ 2021-11-13 11:27 UTC (permalink / raw)
To: Dmitry Torokhov, linux-input; +Cc: Ruineka, Lee Jones
This is needed to get the gamepad on the OneXPlayer handheld console to work.
See https://github.com/paroj/xpad/issues/176
Signed-off-by: Ruineka <ruinairas1992@gmail.com>
Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
---
drivers/input/joystick/xpad.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 4c914f75a902..e51f3a2bf06b 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -334,6 +334,7 @@ static const struct xpad_device {
{ 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
{ 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
{ 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
+ { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
{ 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
{ 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
{ 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
@@ -450,6 +451,7 @@ static const struct usb_device_id xpad_table[] = {
XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */
XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */
XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */
+ XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */
XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: xpad - add OneXPlayer Gamepad
2021-11-13 11:27 [PATCH] Input: xpad - add OneXPlayer Gamepad Benjamin Valentin
@ 2021-11-14 1:08 ` Cameron Gutman
0 siblings, 0 replies; 2+ messages in thread
From: Cameron Gutman @ 2021-11-14 1:08 UTC (permalink / raw)
To: Benjamin Valentin, Dmitry Torokhov, linux-input; +Cc: Ruineka, Lee Jones
On 11/13/21 05:27, Benjamin Valentin wrote:
> This is needed to get the gamepad on the OneXPlayer handheld console to work.
>
> See https://github.com/paroj/xpad/issues/176
>
> Signed-off-by: Ruineka <ruinairas1992@gmail.com>
> Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
> ---
> drivers/input/joystick/xpad.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
> index 4c914f75a902..e51f3a2bf06b 100644
> --- a/drivers/input/joystick/xpad.c
> +++ b/drivers/input/joystick/xpad.c
> @@ -334,6 +334,7 @@ static const struct xpad_device {
> { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
> { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
> { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
> + { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
> { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
> { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
> { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
> @@ -450,6 +451,7 @@ static const struct usb_device_id xpad_table[] = {
> XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */
> XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */
> XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */
> + XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
> XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */
> XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
> XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
>
LGTM.
Reviewed-by: Cameron Gutman <aicommander@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-14 1:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-13 11:27 [PATCH] Input: xpad - add OneXPlayer Gamepad Benjamin Valentin
2021-11-14 1:08 ` Cameron Gutman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).