From 82080f9f374bf73a01dd29f5f1cb238ad130b766 Mon Sep 17 00:00:00 2001 From: Lysann Schlegel Date: Sun, 9 Dec 2012 10:31:17 +0100 Subject: [PATCH] we need to pass a single wiimote structure instead of the array to wiiuse_os_read --- src/os_nix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os_nix.c b/src/os_nix.c index 29cc564..4df8a27 100644 --- a/src/os_nix.c +++ b/src/os_nix.c @@ -286,7 +286,7 @@ int wiiuse_os_poll(struct wiimote_t** wm, int wiimotes) { clear_dirty_reads(wm[i]); /* read the pending message into the buffer */ - r = wiiuse_os_read(wm, read_buffer, sizeof(read_buffer)); + r = wiiuse_os_read(wm[i], read_buffer, sizeof(read_buffer)); if (r > 0) { /* propagate the event */ propagate_event(wm[i], read_buffer[0], read_buffer+1);