Kern Fowler / Mbed 2 deprecated Donkey_Kong_Game

Dependencies:   mbed

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);