Initial publish
Dependencies: mbed
Fork of el17dg by
menu/menu.h
- Committer:
- Noximilien
- Date:
- 2019-03-03
- Revision:
- 4:02c63aaa2df9
- Child:
- 27:f05f4e738ba9
File content as of revision 4:02c63aaa2df9:
#ifndef MENU_H #define MENU_H enum ScreenOption { //the available options in the menu. ScreenOption_Menu, ScreenOption_Game, ScreenOption_Tutorial, ScreenOption_Settings }; class Menu { public: Menu(); // Updates menu input, option select and draws menu // Return true if user picked a menu option bool updateAndDraw(); ScreenOption getCurrentScreenSelection(); private: void pointerPosition(int menu_number); void drawPointer(); int current_option; // NOTE to self: can declare variables in classes. }; #endif