Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix Wiimote support on macOS 10.13 High Sierra #6234
-[deviceInquiryComplete:error:aborted:] comes in on the main thread in macOS 10.13, so instead of using CFRunLoopRun()/CFRunLoopStop(), just let the run loop do one pass while waiting for "done" to be true. This also means -[deviceInquiryComplete:error:aborted:] should no longer call CFRunLoopStop(). Fixes connecting to Wiimotes in macOS 10.13+, and should continue to work as before in 10.12 and below.
@ligfx can you review + test this
Also, @amolloy, please make linter happy. Follow the guide here
as of right now we use clang-format from the LLVM 3.8 stable release.