rpavlik/wiiuse — pull request #30 by lysannkessler (2012-12-08 22:22:52+00:00)
Title: Synchronous motion plus init & OSX Refactoring

Includes all changes from #14 and #26.
Yes, there were several of conflicts, but I am confident I resolved them all correctly.

This branch also moves all platform-specific read and write code into wiiuse_os_read and wiiuse_os_write.
This ensures that the same interface is used for all wiiuse_io_read and wiiuse_io_write implementations. Especially inserting the SET_OUTPUT_REPORT byte on Mac and Linux is handled within these functions now, and not outside. The callers of these functions never see this first byte.

I tested with a Wiimote and Nunchuk with and without M+ on Mac and Windows, but I don't have a Linux box with Bluetooth available.