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.
Pause/Pause.h
- Committer:
- JamesCummins
- Date:
- 2019-04-17
- Revision:
- 20:4a39a1a2be51
- Child:
- 21:9d1447765ee1
File content as of revision 20:4a39a1a2be51:
#ifndef PAUSE_H #define PAUSE_H #include "mbed.h" #include "Gamepad.h" #include "N5110.h" enum Mode{ CLASSIC, BRICKBREAKER }; enum PauseOption{ RESUME, RESTART, QUIT, HELP }; struct PauseSelection{ int output; PauseOption next_state[3]; }; class Pause { public: void init(); int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame); private: void display_pause_options(N5110 &lcd); PauseOption pause_selection(Gamepad &gamepad, N5110 &lcd); void brickbreaker_help(Gamepad &gamepad, N5110 &lcd); PauseOption _state; int _next_state; }; #endif