zhenye yang
/
el17zy
Yang Zhenye 201199680
Diff: Menu/Menu.h
- Revision:
- 2:baca89f466bc
- Child:
- 3:30c81344beff
diff -r 74f525027af6 -r baca89f466bc Menu/Menu.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Menu/Menu.h Thu Apr 30 07:08:09 2020 +0000 @@ -0,0 +1,31 @@ +#ifndef MENU_H +#define MENU_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Engine.h" + +struct State { + int output; + int next_state[4]; } + +class Menu { + public: + Menu(); + ~Menu(); + void init(); + void run(N5110 &lcd, Gamepad &gamepad); + + private: + void dispaly_page1(); + void display_page2(); + void display_page3(); + void output(); + void input(bool start, bool back, bool x); + int _output; + int _state; + int _input; + }; + #endif + \ No newline at end of file