Skip to content

Commit

Permalink
a bit unstable pause added
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswata56 committed Nov 11, 2018
1 parent 495d528 commit e6a9db7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Header/control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ void user_interact(Tao &tao)
tao.roll(velocityX);
}
if(Keyboard::isKeyPressed(Keyboard::Escape)){
while(!Keyboard::isKeyPressed(Keyboard::Backspace)){
Clock clk;
while(!(clk.getElapsedTime().asSeconds() >= 100000)){
if(Keyboard::isKeyPressed(Keyboard::Backspace))
break;
}
}
}
Expand Down

0 comments on commit e6a9db7

Please # to comment.