Mochu Yao explorer game

Dependencies:   mbed

Revision:
36:cdfba51a0a44
Parent:
32:47d98959b4ef
--- a/menu/Menu.cpp	Fri May 08 07:49:32 2020 +0000
+++ b/menu/Menu.cpp	Wed May 13 08:49:44 2020 +0000
@@ -33,7 +33,7 @@
 State _fsm[3] = {
    {0,{0,1,0,0}},
    {1,{1,1,0,2}},
-   {2,{2,1,2,0}}
+   {2,{2,1,2,2}}
 };
 
 Menu::Menu() {}
@@ -63,11 +63,11 @@
 void Menu::get_input(bool start, bool back, bool a) {
     if(!start && !back && !a) {
         _input_value = 0;}
-    else if (!start && back) {
+    else if (!start && back && !a) {
         _input_value = 1;}
-    else if (start && !back) {
+    else if (start && !back && !a) {
         _input_value = 2;}
-    else if (a) {
+    else if (a && !start && !back) {
         _input_value = 3;}
 }