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
Menu/Menu.h@12:47578eb9ea73, 2019-04-10 (annotated)
- Committer:
- ikenna1
- Date:
- Wed Apr 10 11:01:19 2019 +0000
- Revision:
- 12:47578eb9ea73
- Parent:
- 11:73cd744ffa80
- Child:
- 13:e114d362186d
Can now flip between ships in menu
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ikenna1 | 9:241a1a7d8527 | 1 | #ifndef MENU_H |
ikenna1 | 9:241a1a7d8527 | 2 | #define MENU_H |
ikenna1 | 9:241a1a7d8527 | 3 | |
ikenna1 | 9:241a1a7d8527 | 4 | #include "mbed.h" |
ikenna1 | 9:241a1a7d8527 | 5 | #include "N5110.h" |
ikenna1 | 9:241a1a7d8527 | 6 | #include "Gamepad.h" |
ikenna1 | 9:241a1a7d8527 | 7 | |
ikenna1 | 9:241a1a7d8527 | 8 | class Menu |
ikenna1 | 9:241a1a7d8527 | 9 | { |
ikenna1 | 9:241a1a7d8527 | 10 | public: |
ikenna1 | 9:241a1a7d8527 | 11 | Menu(); |
ikenna1 | 9:241a1a7d8527 | 12 | ~Menu(); |
ikenna1 | 9:241a1a7d8527 | 13 | |
ikenna1 | 9:241a1a7d8527 | 14 | // Displays title screen |
ikenna1 | 9:241a1a7d8527 | 15 | void init(int ycursor); |
ikenna1 | 10:c33d7593a275 | 16 | void title(N5110 &lcd); |
ikenna1 | 10:c33d7593a275 | 17 | void update(Direction d); |
ikenna1 | 9:241a1a7d8527 | 18 | int get_cursor(); |
ikenna1 | 12:47578eb9ea73 | 19 | void disp_ships(N5110 &lcd); |
ikenna1 | 9:241a1a7d8527 | 20 | //void Menu::scroll(N5110 &lcd, Direction d); |
ikenna1 | 9:241a1a7d8527 | 21 | |
ikenna1 | 9:241a1a7d8527 | 22 | private: |
ikenna1 | 12:47578eb9ea73 | 23 | int _xcursor; |
ikenna1 | 9:241a1a7d8527 | 24 | int _ycursor; |
ikenna1 | 12:47578eb9ea73 | 25 | |
ikenna1 | 9:241a1a7d8527 | 26 | |
ikenna1 | 9:241a1a7d8527 | 27 | }; |
ikenna1 | 9:241a1a7d8527 | 28 | #endif |