delete mac implementation, replace by stub; reorganize platform-specific code

This commit is contained in:
Lysann Schlegel
2012-11-10 13:03:51 +01:00
parent f7b4fd44a0
commit f1c7a7712b
10 changed files with 188 additions and 1043 deletions

View File

@@ -199,19 +199,8 @@ int wiiuse_poll(struct wiimote_t** wm, int wiimotes) {
for (i = 0; i < wiimotes; ++i) {
wm[i]->event = WIIUSE_NONE;
if (wiiuse_io_read(wm[i])) {
/* propagate the event, messages should be read as in linux, starting from the second element */
propagate_event(wm[i], wm[i]->event_buf[1], wm[i]->event_buf+2);
evnt += (wm[i]->event != WIIUSE_NONE);
/* clear out the event buffer */
memset(wm[i]->event_buf, 0, sizeof(wm[i]->event_buf));
} else {
idle_cycle(wm[i]);
}
idle_cycle(wm[i]);
}
#endif
return evnt;