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.
Menu/Menu.h
- Committer:
- Andrew_M
- Date:
- 2018-05-07
- Revision:
- 12:d3eef5ea3f43
- Parent:
- 10:279d3775d52c
- Child:
- 14:a57a40ff9430
File content as of revision 12:d3eef5ea3f43:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Menu
{
public:
Menu();
~Menu();
void init();
void read_input(Gamepad &pad);
void update();
void draw(N5110 &lcd);
bool started();
int getDif();
int getLvl();
private:
char _d;
bool _start;
int _mainSelection;
int _difSelection;
int _lvlSelection;
bool _buttonPressed;
string _menuScreen;
int _difficulty;
int _level;
};