diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-05-27 09:34:37 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-05-27 09:34:37 (GMT) |
commit | 8417d75663d8fb36dd7fd1dfaf9ad8f82cb1bc01 (patch) | |
tree | f8ead691b5bb9cb5a2e5fcc9c10e36dd753e5428 | |
parent | 036783e6a24706f7e9e668c4a6ad7db7a7d765b6 (diff) | |
download | 2iv55-8417d75663d8fb36dd7fd1dfaf9ad8f82cb1bc01.zip 2iv55-8417d75663d8fb36dd7fd1dfaf9ad8f82cb1bc01.tar.gz 2iv55-8417d75663d8fb36dd7fd1dfaf9ad8f82cb1bc01.tar.bz2 |
sleep, not Sleep, and it's from unistd.h
-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;
|