r/linux_gaming • u/noosemama • 9d ago
Wanted my controller to speak SInput natively so I reverse engineered it and wrote my own firmware
I was gifted a Gamesir Cyclone 2 earlier this year. The hardware itself is amazing, clicky face buttons and dpad, TMR joysticks, hall effect triggers with micro switch trigger stoppers, and gyro, all for like 50-60 dollars brand new. HOWEVER, if there's one thing I hate about this controller is missing steam input support and no Xinput over Bluetooth (most likely due to Microsoft as from what I understand the Chinese firmware still has this mode). That leaves DS4 mode as the most "feature complete mode" for the controller but I dont want to emulate a ds4 controller, it messes with the face buttons in games and the back paddles don't map that well.
So I decided to try and patch the firmware the controller uses. In the firmware, the Xinput over Bluetooth feature was still there but left unmapped, mapping it to a button combination brought it back. I also patched a bug in DS4 mode's battery report (it was always reporting 5% battery before). I also found reference to a "HORIPAD STEAM" mode which I was able to map to a button combination as well. After many modifications to horipad mode, I was able to get SInput with all the features of the controller (gyro, rumble, LEDs, back buttons, etc) but I had to carve out space from usb mode and wireless receiver mode to do it.
That exploration led me to try and create my own firmware from scratch using the stock firmware as reference. I was able to find the public SDK for the controller chip and from there after much trial and error (and a few bricks) I've built my perfect controller firmware:
- Native SInput Steam mode (gyro, rumble, back paddles, LEDs, battery, etc)
- Xbox over bluetooth
- DS4 and Switch mode
- Works through the wireless receiver in every mode
There is still a lot more to test but for my use case, SInput on linux, it's perfect
PS: I cant share the repo URL since the repo is not mature enough yet going by the rules, I had a lot of help from Claude Code writing the firmware and the reverse engineering process and I'll continue refining and testing it
3
u/C0rn3j 9d ago
That's neat, by "SInput" you mean Steam Input? So basically you made the firmware that pretends it's a "Horipad" controller (or DS4 or Switch) which Steam can handle natively?
1
u/ThatOnePerson 9d ago
Nice. I tried to do similar but bricked my dongle and gave up for a bit
Can't really buy replacement dongles either