pqrs-org / Karabiner-DriverKit-VirtualHIDDevice

The Unlicense
223 stars 27 forks source link

Feature request: Virtual joystick device #22

Open mathiasgredal opened 2 years ago

mathiasgredal commented 2 years ago

I would like to use my Xbox-360 wireless controller on my MacBook, however the wireless reciever doesn't work with MacOS, but it does work on Linux using xboxdrv. Since this driver runs in userspace on top of libusb, it should be quite easy for me to port it to MacOS, as long as there is a way to forward the events to the system. Hence the need for a virtual joystick device.

a-hurst commented 2 years ago

Seconding this request: newer versions of macOS (especially Monterey) have broken support for older Bluetooth controllers that used to work natively (e.g. PS3 controllers, Wii controllers), and the recent changes to the driver security model and migration from kexts to dexts also mean that a lot of existing 3rd-party drivers for popular gamepads (e.g. the open-source 360controller driver for Xbox 360 controllers) are much harder to install and require disabling SIP.

A signed virtual DriverKit joystick/gamepad device driver would provide a perfect compatibility layer for this, providing 3rd party drivers a target to send parsed input events so they can get used by the system.

kokroo commented 2 weeks ago

I am doing this at https://github.com/kokroo/kokrooPAD

I sent out some e-mails to @tekezo for guidance ~but I have received no response, perhaps it went to his spam folder~ (I have received a response now). @mathiasgredal If you would like to join me in these efforts, feel free to reach out. I know how it can be implemented but this is my first time playing with macOS APIs. I am willing to create an Apple developer account and request the entitlements to get our driver signed.

Cheers!