riking / joycon

Joy-Con input driver for Linux
290 stars 31 forks source link

Mac support #9

Open riking opened 7 years ago

riking commented 7 years ago
bryan1anderson commented 6 years ago

any more progress on this?

riking commented 6 years ago

It's blocked on either (1) I acquire Mac hardware I have root on, sign up for Apple Developer program, learn how to write Mac kernel drivers, and get one signed or (2) Someone else does that

ahjsrhj commented 6 years ago

so it means when I turn off SIP, it will works for other program?

CwbhX commented 6 years ago

I'd be willing to try and work on the mac support but I don't have experience with Go, can't build the latest build due to undefined "sync" in bluetooth_generic. If someone has a fast answer that'd be great since not much time to debug after work. cheers

riking commented 6 years ago

@CwbhX whoops! just running goimports will fix that one, will push up a commit right now.

It's hard to test on all OSes because cgo means I need a builder on the target system, or a full cross compiler (not happening).

f9c1217

nickell-andrew commented 6 years ago

Is there a work around for mac OS setup regarding libudev-dev? I'm trying to get this whole thing to compile on my macbook pro.

Update: there's no need to (manually) install libudev-dev to run joycon in OSX 10.13

justgerd commented 6 years ago

@nickell-andrew Joycon by itself works fine under macOS. The issue is that you cannot actually create an input driver in userspace.

@riking I recently (don't ask me how, I don't remember) discovered unbit/foohid, which apparently allows you to write an input driver in userspace. I don't think of myself as experienced enough to write a good input driver, but I'll try anyways.

I might be able to create it as an userspace application and also provide a properly signed kext for kernel space.

nickell-andrew commented 5 years ago

@gerd2002 nice find on the unbit/foohid I may take a stab at writing a driver myself even though I have no experience writing input drivers. Feel free to bother me if you think I can help you in any way with you efforts.