summaryrefslogtreecommitdiffstats
path: root/matchblox/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/main.cpp')
-rw-r--r--matchblox/main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/matchblox/main.cpp b/matchblox/main.cpp
index ce16470..3e54784 100644
--- a/matchblox/main.cpp
+++ b/matchblox/main.cpp
@@ -12,11 +12,8 @@
#include <GL/glut.h>
#include <iostream>
-#include <unistd.h>
#include <math.h>
-#include "message_queue.h"
-#include "message_input.h"
#include "typedefs.h"
#include "menu.h"
#include "textfile.h"
@@ -145,10 +142,10 @@ void init_gl(void)
void idle_func(void)
{
struct input_payload_wiimote wiimote_payload;
+ struct messageq_s message;
g_GameState.m_pWiimote[0]->FillWiimoteMsgPayload(wiimote_payload, 205.0); // << should be a sensor bar led distance
- struct messageq_s message;
message.recipient = MESSAGE_MENU | MESSAGE_RENDERER;
message.sender = MESSAGE_INPUT_WIIMOTE;
message.payload = &wiimote_payload;
@@ -156,9 +153,9 @@ void idle_func(void)
messageq_send(&message);
g_pEngine->ProcessMsgs();
-
+
//call engine idle func
- MenuRun();
+ MenuProcessMessage();
glutPostRedisplay();
}