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.
Diff: lib/Controls/Controls.cpp
- Revision:
- 19:8400ecdb69e9
- Parent:
- 13:94abfe83a294
- Child:
- 23:ecb74e52163d
--- a/lib/Controls/Controls.cpp Wed May 08 22:35:48 2019 +0000 +++ b/lib/Controls/Controls.cpp Wed May 08 23:14:49 2019 +0000 @@ -6,20 +6,22 @@ #include "Controls.h" +// Constructor - Doesn't require any setup. Controls::Controls() { } +// Deconstructor - Doesn't require any setup. Controls::~Controls() { } +// Prints various text to screen relating to the game controls. void Controls::controls_run(Gamepad &pad, N5110 &lcd) { wait_ms(250); - - while (pad.check_event(Gamepad::BACK_PRESSED) == false) { + while (pad.check_event(Gamepad::BACK_PRESSED) == false) { // Continues to show this screen until BACK button pressed. //printf("Control State"); lcd.clear(); lcd.printString("Controls",19,0);