From 4f065b02adfd5cb75d7b4d7deddc33c9f0dd1900 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 26 Nov 2017 15:24:34 +0800 Subject: [PATCH] F1 to switch background in Menu core. --- menu.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/menu.c b/menu.c index 94b39ad..f833510 100644 --- a/menu.c +++ b/menu.c @@ -510,6 +510,17 @@ void HandleUI(void) menu = true; menu_key_set(KEY_F12 | UPSTROKE); break; + case KEY_F1: + if (is_menu_core()) + { + unsigned long status = (user_io_8bit_set_status(0, 0)>>1)&7; + if (status == 5) status = 0; + else status++; + status <<= 1; + user_io_8bit_set_status(status, 0xE); + FileSaveConfig(user_io_create_config_name(), &status, 4); + } + break; // Within the menu the esc key acts as the menu key. problem: // if the menu is left with a press of ESC, then the follwing