summaryrefslogtreecommitdiffstats
path: root/matchblox/common
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/common')
-rw-r--r--matchblox/common/message_input.h12
-rw-r--r--matchblox/common/message_queue.c4
2 files changed, 7 insertions, 9 deletions
diff --git a/matchblox/common/message_input.h b/matchblox/common/message_input.h
index f06e610..e234b74 100644
--- a/matchblox/common/message_input.h
+++ b/matchblox/common/message_input.h
@@ -11,6 +11,7 @@
extern "C" {
#endif
+#include <wiiuse.h>
struct input_payload_keyboard
{
@@ -30,13 +31,10 @@ struct input_payload_mouse
int y;
};
-struct input_payload_wiimote
-{
- int passive;
- int button;
- int state;
- int x;
- int y;
+struct input_payload_wiimote
+{
+ unsigned short btns;
+ ir_t ir;
};
#ifdef __cplusplus
diff --git a/matchblox/common/message_queue.c b/matchblox/common/message_queue.c
index b294cee..4b89a3b 100644
--- a/matchblox/common/message_queue.c
+++ b/matchblox/common/message_queue.c
@@ -82,8 +82,8 @@ struct messageq_s *messageq_get(int recipient)
i = (i < MAX_MESSAGES -1) ? i +1 : 0;
if (messageq[i].recipient & recipient) {
message_found++;
- printf("message[%d].recp = %d (messageq_index= %d)\n", i, messageq[i].recipient, messageq_index);
- printf("Message found! %d\n", message_found);
+ //printf("message[%d].recp = %d (messageq_index= %d)\n", i, messageq[i].recipient, messageq_index);
+ //printf("Message found! %d\n", message_found);
}
} while ((i != (messageq_index)) && (!message_found));