arpruss / USBComposite_stm32f1

USB Composite library for STM32F1 (HID, Serial, MIDI and XBox360 controller)
Other
381 stars 76 forks source link

Adding/editing Z/Zrot to Xbox360's axis #92

Open Gabrimax98 opened 3 years ago

Gabrimax98 commented 3 years ago

Hi there, I've been using this library for a bit and let me tell you, this is the best library that could happen for STM32s. I really want to thank you for your hard work on it and can't wait to have more updates on it (if you're going to do them).

I'm trying to spoof VIDs and PIDs of an X-Plorer Guitar Hero Controller in order to convert an already modded PS2 controller to an Xbox360 one. It's a really hard task since i think it's sending different bytes at connection to identify itself as a Guitar instead of a Controller on joy.cpl (the 'Setup USB Controllers" window). image

Now, judging from this picture i've found, i'd need to remove the X/Y axis calls and add a Z Rotation axis (as well as this "Curseur" that i'm still trying to figure out what it is).

I've been reading on https://github.com/arpruss/USBComposite_stm32f1/issues/84 that this is possible on normal HID Joysticks, but i can't find those strings for the single XBox360 controller instance (only found them for the MultiXbox360 on USBMultiXBox360.cpp).

Where would i find the void calls for the controller? so that i can try editing them and removing what i don't need.

Thanks in advance! Gabrimax

arpruss commented 3 years ago

I don't think the XBox360 controller has a z axis.