delete mac implementation, replace by stub; reorganize platform-specific code
This commit is contained in:
13
src/events.c
13
src/events.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user