Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
80:51ca38c5dcdf
Parent:
78:10e5cc013806
Child:
83:329da564799a
--- a/MenuClasses/Tutorial/Tutorial.h	Sun May 05 23:48:57 2019 +0000
+++ b/MenuClasses/Tutorial/Tutorial.h	Mon May 06 08:00:56 2019 +0000
@@ -18,6 +18,13 @@
     */
     void Implement(N5110 &lcd, Gamepad &pad);
     
+    /** Check Back Pressed
+    *
+    *   This function makes a centralised approach to check when back is pressed in a loop, so that it can be used to exit it and also go to.
+    *   the previous menu option.
+    */
+    bool checkBackPressed(Gamepad &pad);
+    
     /** game Pad
     *
     *   This function introduces the gamepad to the user.
@@ -53,5 +60,9 @@
     *   This function shows how to start/end the game and also go to the next/previous menu.
     */
     void controlsForPreviousOrNext(N5110 &lcd, Gamepad &pad);
+    
+private:
+    bool _backPressed; //remembers if back is pressed.
+    
 };
 #endif
\ No newline at end of file