FINAL VERSION

Dependencies:   mbed

Revision:
110:780fdecd9171
Parent:
109:5ba766522df0
Child:
111:4848c399fae0
--- a/main.cpp	Wed May 08 01:43:04 2019 +0000
+++ b/main.cpp	Wed May 08 01:57:25 2019 +0000
@@ -282,6 +282,7 @@
         }
         if (pad.check_event(Gamepad::START_PRESSED) == true) { // if BACK pressed, toggle pause
             pause = !pause;
+            wait(0.4); // delay to help with button bounce
         }
 
         while (pause == true) { // if pause is true, display pause screen
@@ -292,6 +293,7 @@
             lcd.refresh();
             if (pad.check_event(Gamepad::START_PRESSED) == true) { // if START pressed, toggle pause, leaving pause screen
                 pause = !pause;
+                wait(0.4); // delay to help with button bounce
             }
             if (pad.check_event(Gamepad::BACK_PRESSED) == true) { // if BACK pressed, return to the title screen
                 breakout.set_mult_zero(); // reset multiplier