I want to make a USB driver for the arcade keyboard for OS X

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!

+5
source share
1 answer

Most PS3 controllers are HID devices only, so you should work in that direction.

It’s easier than a simple route, and, as I believe, less personal satisfaction, you just had to grab one of the Mac-> Mac USB controller applications and run with it.

I have used USB Overdrive for many years and it always works well.

0
source

Source: https://habr.com/ru/post/1208173/


All Articles