I have an arcade stick for my PS3, which I used to fight games. I rarely play them, so I decided that I would turn the stick on my Mac and see if I could get any arcade games on my computer. I also tried this on Windows, and it seems that there are no drivers for any OS.
Now I am not one of those who are disappointed and just refuse it. I thought it would be a great opportunity to try writing a driver. How hard can it be? All I need is a plan.
Plan
I need a driver that supports every arcade stick function. It includes:
- Eight front panel buttons
- Analog stick
- Lock / Direction Switches (the last is three steps and the first is two steps)
- Home / Turbo Buttons
- Two side buttons
I was looking for things that could help me with this, but I do not know where to start. I want a tool that can scan the USB port for signals coming from a connected device, and from these signals to decrypt which input matches. Then I want to programmatically map this entry into the OS X API for game controllers, put it in a package and download: driver!
Perhaps this only works in my head. For starters, I can't find this magic USB tool I'm looking for. I tried USB Prober and it detects my arcade stick, but I cannot get any log entries when I press the buttons on the stick. (Yes, I installed log kext)
Most of the search results related to scanning USB network interfaces. I donβt think what I need.
I also got the idea that maybe USB devices behave like old school Unix devices, and I could do something like cat /dev/usb/port3 and get good data, but I did not find anything like that.
I just don't know where to start. I found several Apple documentation devices on USB devices, but I donβt even know if the wand is HID compatible.
Now I mainly look at libusb and look at the documentation.
I have not been involved in such a project before to welcome any ideas and advice.
Thanks!
source share