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
Diff: RosenEngine/RosenEngine.cpp
- Revision:
- 10:c33d7593a275
- Parent:
- 9:241a1a7d8527
- Child:
- 11:73cd744ffa80
diff -r 241a1a7d8527 -r c33d7593a275 RosenEngine/RosenEngine.cpp --- a/RosenEngine/RosenEngine.cpp Tue Apr 09 05:14:07 2019 +0000 +++ b/RosenEngine/RosenEngine.cpp Tue Apr 09 06:43:01 2019 +0000 @@ -41,6 +41,7 @@ { _ship.update_ship(_xjoystick,_yjoystick); _weapons.update(); + // _menu.update(_d); } void RosenEngine::get_pos() { @@ -50,8 +51,15 @@ ship_ypos = ship_pos.y; ship_width = 9; _weapons.init(ship_xpos, ship_ypos, ship_width); + _ycursor = _menu.get_cursor(); } void RosenEngine::title(N5110 &lcd) { - _menu.title(lcd,_d); + _menu.title(lcd); + _menu.update(_d); +} +int RosenEngine::get_cursor() +{ + _ycursor = _menu.get_cursor(); + return _ycursor; } \ No newline at end of file