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.
Fork of Menu by
Navigator.h
00001 #ifndef NAVIGATOR_H 00002 #define NAVIGATOR_H 00003 00004 #include "mbed.h" 00005 #include "Menu.h" 00006 #include "TextLCD.h" 00007 00008 class Navigator { 00009 public: 00010 Navigator(Menu *root, TextLCD *lcd); 00011 00012 void printMenu(); 00013 00014 void actionNone(); 00015 void actionUp(); 00016 void actionDown(); 00017 void actionBack(); 00018 void actionEnter(); 00019 void actionHome(); 00020 00021 private: 00022 00023 typedef enum { 00024 none, up, down, back, enter, home 00025 } Status; 00026 00027 Menu *root; 00028 TextLCD *_lcd; 00029 00030 /// the current menu can change when RPG is pushed on selection with child menu 00031 Menu *activeMenu; 00032 00033 ///The last action 00034 Status _lastAction; 00035 ///which selection the cursor points to 00036 uint16_t cursorPos; 00037 }; 00038 00039 #endif
Generated on Sat Jul 23 2022 03:26:07 by
1.7.2
