Line 224:
Line 224:
return numAttached;
return numAttached;
}
}
+
+
void waitForWiimote()
+
{
+
while(1)
+
{
+
numberOfAttachedControllers();
+
if (totalWiiMotes > 0) break;
+
}
+
}
+
//---------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------
Line 231:
Line 241:
Initialize();
Initialize();
+
+
waitForWiimote();
showWiiMoteAccelerometer();
showWiiMoteAccelerometer();