Library of Navigator of menu systems
Embed:
(wiki syntax)
Show/hide line numbers
Navigator.h
00001 #ifndef NAVIGATOR_H 00002 #define NAVIGATOR_H 00003 00004 #include "mbed.h" 00005 #include "Menu.h" 00006 #include "TextLCD.h" 00007 #include "RPG.h" 00008 00009 class Navigator { 00010 private: 00011 00012 public: 00013 //Navigator(Menu &, RPG &, TextLCD &); 00014 Navigator(Menu &, RPG &, TextLCD *lcd); 00015 Menu activeMenu; 00016 RPG rpg; 00017 TextLCD *lcd; 00018 int direction; 00019 bool selectButton; 00020 00021 void poll(); 00022 void moveUp(); 00023 void moveDown(); 00024 void printMenu(); 00025 void update(); 00026 }; 00027 00028 #endif
Generated on Wed Jul 13 2022 19:51:51 by 1.7.2