Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Pause/Pause.h
- Revision:
- 29:42651f87522b
- Parent:
- 22:4e305ff8a050
- Child:
- 37:de1f584bce71
--- a/Pause/Pause.h Thu Apr 25 16:26:34 2019 +0000 +++ b/Pause/Pause.h Sat Apr 27 12:50:30 2019 +0000 @@ -3,6 +3,7 @@ #include "mbed.h" #include "Gamepad.h" +#include "ClassicEngine.h" #include "N5110.h" enum Mode{ @@ -32,14 +33,15 @@ //initialiser void init(); //accessor - int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame, Mode mode); + PauseOption pause_menu(Gamepad &gamepad, N5110 &lcd, int fps); + int brickbreaker_action(PauseOption choice, Gamepad &gamepad, N5110 &lcd, int frame, int fps); + void classic_help(Gamepad &gamepad, N5110 &lcd); + void brickbreaker_help(Gamepad &gamepad, N5110 &lcd); private: void display_pause_options(N5110 &lcd); PauseOption pause_selection(Gamepad &gamepad, N5110 &lcd); - void brickbreaker_help(Gamepad &gamepad, N5110 &lcd); - void classic_help(Gamepad &gamepad, N5110 &lcd); PauseOption _state; int _next_state; };