JustinBis / wjoy-foohid

Nintendo wiimote driver for Mac OS X using foohid
51 stars 12 forks source link

Fix issue with controller immediately disconnecting #4

Closed TellowKrinkle closed 7 years ago

TellowKrinkle commented 7 years ago

For some reason the foohid create request fails if the product string or the serial number string points to a static string (defined as a constant, rather than dynamically allocated), so this copies the strings into local buffers before performing the request.

JustinBis commented 7 years ago

Thanks for the fix!

arthrfrts commented 7 years ago

@JustinBis Will you create a new release for this fix?

Natrium729 commented 7 years ago

@arthrfrts Someone forked wjoy-foohid and made a new release with the fix (and other fixes too). You can find it here.

I tested it with a Wii U Pro Controller on El Capitan with SIP enabled, and it seems to work well! I don't know if Justin will make a new release, so meanwhile...