use the interrupt (data) channel as output channel on mac

This commit is contained in:
Lysann Schlegel
2012-11-12 01:45:32 +01:00
parent 4bf58ca73a
commit 7b13623d12
3 changed files with 22 additions and 17 deletions

View File

@@ -663,7 +663,11 @@ int wiiuse_send(struct wiimote_t* wm, byte report_type, byte* msg, int len) {
#ifdef WIIUSE_WIN32
buf[0] = report_type;
#else
buf[0] = WM_SET_REPORT | WM_BT_OUTPUT;
#ifdef WIIUSE_MAC
buf[0] = WM_SET_DATA | WM_BT_OUTPUT;
#else // *NIX
buf[0] = WM_SET_REPORT | WM_BT_OUTPUT;
#endif
buf[1] = report_type;
#endif