-
Notifications
You must be signed in to change notification settings - Fork 659
Fix hotkey mapping and name for Nacon/BigBen PS4 controller. #14922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
That controller was added in batocera-linux@8e95d26 The commit message says "PS4 Nacon Revolution Unlimited Pro Controller". The `deviceName` says "Generic X-Box pad". The physical controller I have access to says "Nacon Revolution Unlimited Pro Controller". The [associated website](https://www.nacongaming.com/en-GB/revolution-unlimited-pro-controller) says it's a PS4 controller. The `lsusb` command says "BigBen Interactive Revolution Unlimited Pro Controller". This change updates the name to be more accurate as it's definitely not an X-Box controller. This change also fixes the hotkey mapping to match the central PS button.
|
what does |
But |
|
Does it mean we need to update https://github.com/mdqinc/SDL_GameControllerDB/tree/master first? |
|
so keep it |
|
I think that string actually comes from the USB driver: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/joystick/xpad.c#n428 |
|
I cannot find the kernel configuration, headers and Module.symvers for Batocera releases. Is that available somewhere or do I need to rebuild the whole kernel just to test a one line patch against xpad.c? |
|
the driver used is an xbox compatible controller type. so i assume this is what the PC mode gets set to. index c6e80e2bf3..3d4a435abd 100644
--- a/xpad.c
+++ b/xpad.c
@@ -248,6 +248,7 @@ static const struct xpad_device {
{ 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
{ 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
+ { 0x146b, 0x0605, "BigBen Interactive Revolution Unlimited Pro Controller", 0, XTYPE_XBOX360 },
{ 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
{ 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
{ 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },```
let me know if it works. |
|
I sent a similar patch to linux-input: https://lore.kernel.org/linux-input/aTsISNi0WZb8YCGA@rodenbach/T/ I'll see if I can figure out how to rebuild xpad-noone the Batocera way. |
|
@baikiet did my suggestion work? |
|
Sorry, I have not attempted to rebuild xpad-noone nor am I likely to have time to do so in the near future. |
That controller was added in 8e95d26 The commit message says "PS4 Nacon Revolution Unlimited Pro Controller". The
deviceNamesays "Generic X-Box pad".The physical controller I have access to says "Nacon Revolution Unlimited Pro Controller". The associated website says it's a PS4 controller. The
lsusbcommand says "BigBen Interactive Revolution Unlimited Pro Controller".This change updates the name to be more accurate as it's definitely not an X-Box controller.
This change also fixes the hotkey mapping to match the central PS button.