Megazig

Joined 16 years ago
129 bytes added ,  02:57, 31 January 2009
m
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();
90

edits