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.
lib/Controls/Controls.cpp
- Committer:
- Kern_EL17KJTF
- Date:
- 2019-05-08
- Revision:
- 19:8400ecdb69e9
- Parent:
- 13:94abfe83a294
- Child:
- 23:ecb74e52163d
File content as of revision 19:8400ecdb69e9:
/* ELEC2645 Project Controls.cpp Class file for Controls in Donkey Kong game. */ #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) { // Continues to show this screen until BACK button pressed. //printf("Control State"); lcd.clear(); lcd.printString("Controls",19,0); lcd.printString("Move Joystick ",0,2); lcd.printString("Left or Right ",0,3); lcd.printString(" to move ",0,4); lcd.printString(" Donkey Kong ",0,5); lcd.refresh(); wait_ms(1.0f/24); } }