paroj / xpad

Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers
813 stars 180 forks source link

MK X Fight Pad for XBox One - Requires new init sequence #84

Open radiantware opened 7 years ago

radiantware commented 7 years ago

Currently doesn't work with the MK X fight pad unless added. Init packet was retrieved using wireshark and tested working. Apologies for posting like this i've never done a pull req, i guess i'd need to fork or something. This is the fight pad: https://www.amazon.co.uk/Mortal-Kombat-Fight-Pad-Xbox/dp/B00W0G6LMS it does have a 360 mode mode which doesn't work either but i've not looked into that yet.

xpad_device: { 0x0e6f, 0x0145, "MK X Fight Pad for XBox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },

xboxone_init_pkt: static const u8 xboxone_mkx_init[] = { 0x05, 0x20, 0x02, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53 };

XBOXONE_INIT_PKT(0x0e6f, 0x0145, xboxone_mkx_init),

cgutman commented 6 years ago

As far as I can tell, the Windows driver sends this packet to all Xbox One-compatible peripherals. I think we should too.