diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
commit | f11312d1d84e102bb29a44dedce4c60a5ae25e56 (patch) | |
tree | ae9928f07d7a3fdafcf341d91ca57c17236ad80b /matchblox/common | |
parent | fbe326b9f9fc8f6d0e3034a81c2d8efcb2859ce2 (diff) | |
download | 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.zip 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.gz 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.bz2 |
Diffstat (limited to 'matchblox/common')
-rw-r--r-- | matchblox/common/message_input.h | 12 | ||||
-rw-r--r-- | matchblox/common/message_queue.c | 4 |
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)); |