diff options
Diffstat (limited to 'matchblox')
-rw-r--r-- | matchblox/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/matchblox/main.cpp b/matchblox/main.cpp index cedaa0c..310df03 100644 --- a/matchblox/main.cpp +++ b/matchblox/main.cpp @@ -10,6 +10,7 @@ #include <GL/glut.h>
#include <iostream>
+#include <unistd.h>
#include <math.h>
#include "message_queue.h"
@@ -42,7 +43,7 @@ bool InitWiiMotes() int retries = 10;
while(!g_GameState.m_pWiimote[0]->Connect() && retries > 0)
{
- Sleep(100);
+ sleep(100);
printf(".");
//retries--;
}
@@ -54,7 +55,7 @@ bool InitWiiMotes() g_GameState.m_pWiimote[0]->SetLeds(0x0f);
g_GameState.m_pWiimote[0]->StartRumble();
- Sleep(500);
+ sleep(500);
g_GameState.m_pWiimote[0]->StopRumble();
return true;
|