Browse Source

add documentation for sleep()

main
fdai7184 2 years ago
parent
commit
9fc54aea83
  1. 3
      src/input.c

3
src/input.c

@ -65,6 +65,9 @@ void getInput(){
}
}
/** pauses the game until p is pressed again
* no parameters, no returns
*/
pause(){
while(getch()!='p'){
sleep(0.10);

Loading…
Cancel
Save