Cathy Nguyen 3 лет назад
Родитель
Сommit
ca7cf7760d
2 измененных файлов с 4 добавлено и 5 удалено
  1. 2 2
      README.md
  2. 2 3
      tama_p1.c

+ 2 - 2
README.md

@@ -12,7 +12,7 @@ Use a search engine to find the Tamagotchi ROM. There is a file named `a`.
 Rename this to `rom.bin`. 
 
 - Left button is A.
-- OK is B. 
+- Down or OK is B. 
 - Right button is C. 
 - Holding the Up button functions the same as press both A and C, which mutes the volume. 
 - Hold the Back button to save and exit.
@@ -24,7 +24,7 @@ Move this folder into flippers applications/plugins/tama_p1.
 
 
 Launching the app, directly from console to flipper: 
-`./fbt launch_app APPSRC=applications\plugins\tama_p1`
+`./fbt launch_app APPSRC=applications_user/TAMA-P1`
 
 Run the following to compile icons:
 ```

+ 2 - 3
tama_p1.c

@@ -483,11 +483,10 @@ int32_t tama_p1_app(void* p) {
                         tamalib_set_button(BTN_LEFT, tama_btn_state);
                     } else if(event.input.key == InputKeyOk) {
                         tamalib_set_button(BTN_MIDDLE, tama_btn_state);
+                    } else if(event.input.key == InputKeyDown) { 
+                        tamalib_set_button(BTN_MIDDLE, tama_btn_state);
                     } else if(event.input.key == InputKeyRight) {
                         tamalib_set_button(BTN_RIGHT, tama_btn_state);
-                    } else if(event.input.key == InputKeyDown && event.input.type == InputTypeShort) { 
-                        // TODO: pause or fast-forward tamagotchi
-                        tama_p1_save_state(); 
                     } else if(event.input.key == InputKeyUp) { // mute tamagotchi
                         tamalib_set_button(BTN_LEFT, tama_btn_state);
                         tamalib_set_button(BTN_RIGHT, tama_btn_state);