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:
- 21:9d1447765ee1
- Parent:
- 20:4a39a1a2be51
- Child:
- 22:4e305ff8a050
diff -r 4a39a1a2be51 -r 9d1447765ee1 Pause/Pause.h
--- a/Pause/Pause.h Wed Apr 17 14:34:08 2019 +0000
+++ b/Pause/Pause.h Wed Apr 17 15:11:54 2019 +0000
@@ -6,8 +6,8 @@
#include "N5110.h"
enum Mode{
- CLASSIC,
- BRICKBREAKER
+ CLASSIC_MODE,
+ BRICKBREAKER_MODE
};
enum PauseOption{
@@ -27,13 +27,14 @@
public:
void init();
-int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame);
+int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame, Mode mode);
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;
};