Is there a command in Saturn C that is similiar to SLEEP in basic. That stops the program until a button is pressed or the time goes out? Please help. I am making a game and i would need this!
void sleepuntilbutton (Uint32 frames)
{
while (frames > 0)
{
SlSynch();
if (Smpc_Peripheral[0].data && PER_DGT_TX) return;
frames--
}
}