James Cummins / Mbed 2 deprecated el17jnc

Dependencies:   mbed

Revision:
21:9d1447765ee1
Parent:
20:4a39a1a2be51
Child:
22:4e305ff8a050
--- a/Pause/Pause.cpp	Wed Apr 17 14:34:08 2019 +0000
+++ b/Pause/Pause.cpp	Wed Apr 17 15:11:54 2019 +0000
@@ -4,7 +4,7 @@
     _state = RESUME;
 }
 
-int Pause::pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame){
+int Pause::pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame, Mode mode){
     PauseOption choice = RESUME;
     while(!(gamepad.check_event(gamepad.A_PRESSED))){
         lcd.clear();
@@ -17,7 +17,10 @@
     if(choice == RESUME){ jump_to_frame = frame; } //Just keep code iterating
     if(choice == RESTART){ jump_to_frame = 0; } //return to frame 1 if restarted
     if(choice == QUIT){ jump_to_frame = 45*fps; } //jump to final frame
-    if(choice == HELP){ brickbreaker_help(gamepad, lcd); } //help screen
+    if(choice == HELP){  //display relevant help screen
+        if(mode == CLASSIC_MODE){ classic_help(gamepad, lcd); }
+        if(mode == BRICKBREAKER_MODE){ brickbreaker_help(gamepad, lcd); }
+    }
     return jump_to_frame;
 }