Skip to contentSkip to conversation

xpad.c: Add support to Hori Real Arcade Pro 4

PATCH Superseded Juan Parrado García 3 participants 6 messages Nov 7 – Nov 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xpad.c: Add support to Hori Real Arcade Pro 4

Add specific support to Hori Real Arcade Pro 4.

drivers/input/joystick/xpad.c +0 -0
index 810e52782..2567ea3bd 100644
@@ -255,6 +255,7 @@ static const struct xpad_device {
  { 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One",

MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
{ 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
{ 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One",
MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
+ { 0x0f0d, 0x008c, "Real Arcade Pro 4", 0, XTYPE_XBOX360 }, { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE",
MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
{ 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch",
MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
{ 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X",
0, XTYPE_XBOXONE },

#1 lore raw

PATCH v2 1/1 xpad.c: Add support to Hori Real Arcade Pro 4

Add specific support to Hori Real Arcade Pro 4.

v2 fixed format

---
 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/xpad.c +1 -0
index 810e52782..2567ea3bd 100644
@@ -255,6 +255,7 @@ static const struct xpad_device {
 	{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
+	{ 0x0f0d, 0x008c, "Real Arcade Pro 4", 0, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
Signature · 1 line
2.56.0
#2 lore raw
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] Input: xpad - missing MAP_TRIGGERS_TO_BUTTONS for Hori Real Arcade Pro 4 - [Low] Input: xpad…

Thank you for your contribution! Sashiko AI review found 2 potential issues to consider:
- [Medium] Input: xpad - missing MAP_TRIGGERS_TO_BUTTONS for Hori Real Arcade Pro 4
- [Low] Input: xpad - Author/Signed-off-by email mismatch and changelog issues
--

commit ae6f93fb0a7ea08dae09b3962836f14f01d5f458
Author: Juan Parrado <[email protected]>

Quoted 7 lines

xpad.c: Add support to Hori Real Arcade Pro 4

Add specific support to Hori Real Arcade Pro 4.

v2 fixed format

[Severity: Low]
The Author address ([email protected]) does not match the Signed-off-by address ([email protected]), and the "v2 fixed format" revision note should be placed below the "---" separator rather than in the commit log.

Also, the commit subject should use the "Input: xpad - ..." prefix, and the changelog should explain why an explicit xpad_device[] entry is needed when vendor 0x0f0d is already matched by XPAD_XBOX360_VENDOR(0x0f0d) in xpad_table[].

drivers/input/joystick/xpad.c static const struct xpad_device { · line 261

Quoted 12 lines
drivers/input/joystick/xpad.c +1 -0
index 810e52782ae89..2567ea3bd2604 100644
@@ -255,6 +255,7 @@ static const struct xpad_device {
 	{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
+	{ 0x0f0d, 0x008c, "Real Arcade Pro 4", 0, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },

[Severity: Medium]
Should this entry set MAP_TRIGGERS_TO_BUTTONS instead of 0?

The Hori Real Arcade Pro 4 is an arcade fightstick with digital pushbuttons for L2/R2 rather than analog triggers, and the other Hori Real Arcade Pro entries in xpad_device[] set MAP_TRIGGERS_TO_BUTTONS so LT/RT are reported as BTN_TL2/BTN_TR2 instead of ABS_Z/ABS_RZ. Previously, 0x0f0d:0x008c bound via XPAD_XBOX360_VENDOR(0x0f0d) with XTYPE_UNKNOWN, where xpad_probe() auto-detected XTYPE_XBOX360 and still honored the triggers_to_buttons module parameter; adding an explicit XTYPE_XBOX360 entry with mapping 0 bypasses that XTYPE_UNKNOWN fallback in xpad_probe() and prevents overriding the trigger mapping via module parameters.

Also, all surrounding 0x0f0d entries in xpad_device[] include the "Hori " vendor prefix in the device name string ("Hori Real Arcade Pro 4").

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

PATCH v3 1/1 xpad.c - Add support to Hori Real Arcade Pro 4

The HORI Real Arcade Pro 4 in PC mode is currently recognized by xpad.c as a 'Generic X-Box pad' and works out of the box. However, this generic name does not match the actual device name, making it difficult for users to distinguish this controller when multiple devices are connected.

Tested on physical hardware. The proposed change works perfectly as is. The MAP_TRIGGERS_TO_BUTTONS parameter does not work here. Other arcade sticks use an identical configuration, such as the 'Street Fighter IV FightPad' and the 'Hori Real Arcade Pro.EX Premium VLX'.

---
v3:
- Updated commit subject and description details.
- Fixed metadata and updated patch version history.
v2:
- Fixed truncated code lines in xpad.c.

 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/xpad.c +1 -0
index 810e52782..2567ea3bd 100644
@@ -255,6 +255,7 @@ static const struct xpad_device {
 	{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
+	{ 0x0f0d, 0x008c, "Real Arcade Pro 4", 0, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
Signature · 1 line
2.56.0
#4 lore raw

PATCH v3 1/1 xpad.c - Add support to Hori Real Arcade Pro 4

In reply to [email protected]

The HORI Real Arcade Pro 4 in PC mode is currently recognized by xpad.c as a 'Generic X-Box pad' and works out of the box. However, this generic name does not match the actual device name, making it difficult for users to distinguish this controller when multiple devices are connected.

Tested on physical hardware. The proposed change works perfectly as is. The MAP_TRIGGERS_TO_BUTTONS parameter does not work here. Other arcade sticks use an identical configuration, such as the 'Street Fighter IV FightPad' and the 'Hori Real Arcade Pro.EX Premium VLX'.

---
v3:
- Updated commit subject and description details.
- Fixed metadata and updated patch version history.
- Corrected device name in code.
v2:
- Fixed truncated code lines in xpad.c.

 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/xpad.c +1 -0
index 810e52782..2567ea3bd 100644
@@ -255,6 +255,7 @@ static const struct xpad_device {
 	{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
+	{ 0x0f0d, 0x008c, "Hori Real Arcade Pro 4", 0, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
 	{ 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
 	{ 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
Signature · 1 line
2.56.0
maintainer Applied
#5 lore raw

Re: [PATCH v3] [PATCH v3] xpad.c - Add support to Hori Real Arcade Pro 4

Quoted 11 lines · Juan Parrado

The HORI Real Arcade Pro 4 in PC mode is currently recognized by xpad.c as a 'Generic X-Box pad' and works out of the box. However, this generic name does not match the actual device name, making it difficult for users to distinguish this controller when multiple devices are connected.

Tested on physical hardware. The proposed change works perfectly as is. The MAP_TRIGGERS_TO_BUTTONS parameter does not work here. Other arcade sticks use an identical configuration, such as the 'Street Fighter IV FightPad' and the 'Hori Real Arcade Pro.EX Premium VLX'.

Applied, thank you.

Signature · 1 line
Dmitry