James Heavey
/
EL17JH
FINAL VERSION
Diff: main.cpp
- Revision:
- 5:67c3e15ee6f8
- Parent:
- 4:6bd488b5b31a
- Child:
- 8:1ab6d90c4d60
--- a/main.cpp Fri Apr 19 12:30:58 2019 +0000 +++ b/main.cpp Fri Apr 19 12:41:22 2019 +0000 @@ -337,11 +337,14 @@ if (pad.check_event(Gamepad::BACK_PRESSED) == true) { pause = !pause; } - if (pause == true) { + while (pause == true) { lcd.clear(); - lcd.printString(" PAUSED ",0,3); + lcd.printString(" PAUSED ",0,2); lcd.refresh(); - cin.get(); + if (pad.check_event(Gamepad::BACK_PRESSED) == true) { + pause = !pause; + } + wait(1.0f/fps); } wait(1.0f/fps); }