bool kbhit(void) { SDL_PumpEvents(); doscreenupdate(); if (klen > 0) return(TRUE); else return(FALSE); }
bool kbhit(void) { SDL_PumpEvents(); doscreenupdate(); if (klen > 0) return(true); else return(false); }
Uint5 gethrt(void) { Sint32 diff; doscreenupdate(); /* Speed controlling stuff */ if (prev == 0) { prev = SDL_GetTicks(); } else { diff = (ftime/1000 - (SDL_GetTicks() - prev)); if (diff > 0) { SDL_Delay(diff); } prev = SDL_GetTicks(); } return(0); }