git: 9front

Download patch

ref: 7125457285f742df0410316f644b61cf8f4141cb
parent: e7ff6450ac77f81a4b15f1b93577224a5e92565a
author: Arne <cgnarne@netcologne.de>
date: Fri Mar 27 13:59:34 EDT 2026

nusb/joy: add 2 xbox360 compatible controllers

First one is the HORI Fighting Stick mini 4 kai. This one originally was made
for the ps3/ps4 but there is a firmware update from HORI which turns it
into a xbox360 controller.

Second one is the 8BitDo Ultimate 2C Wireless Controller, thx qwx.

--- a/sys/src/cmd/nusb/joy/joy.c
+++ b/sys/src/cmd/nusb/joy/joy.c
@@ -487,7 +487,9 @@
 
 	/* XBox360 controller and compatible return no HID descriptor, so we provide one */
 	if(d->usb->vid == 0x045e && d->usb->did == 0x028e
-	|| d->usb->vid == 0x1bad && d->usb->did == 0xf03a){
+	|| d->usb->vid == 0x0f0d && d->usb->did == 0x00ed
+	|| d->usb->vid == 0x1bad && d->usb->did == 0xf03a
+	|| d->usb->vid == 0x2dc8 && d->usb->did == 0x310a){
 		xbox360(kd);
 	}
 }
--