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.
Dependencies: mbed
Fork of el17dg by
Diff: menu/menu.h
- Revision:
- 28:35af3843de8f
- Parent:
- 27:f05f4e738ba9
- Child:
- 29:579e00b7f118
--- a/menu/menu.h Mon Apr 08 14:41:57 2019 +0000
+++ b/menu/menu.h Wed Apr 10 15:42:10 2019 +0000
@@ -1,6 +1,9 @@
#ifndef MENU_H
#define MENU_H
+/** Creates //////////////////////////////////////////////
+ *
+ */
enum ScreenOption { //the available options in the menu.
ScreenOption_Menu,
ScreenOption_Game,
@@ -12,9 +15,10 @@
public:
/** A constructor for Menu*/
Menu();
- // Updates menu input, option select and draws menu
- // Return true if user picked a menu option
- bool updateAndDraw();
+ /** Updates and draws menu input. Also, allows to select an option availabe
+ * from the enum. It return "true" statment if the user picked a menu option.
+ */
+ bool updateAndDraw();
ScreenOption getCurrentScreenSelection();
