F1 to switch background in Menu core.

This commit is contained in:
sorgelig
2017-11-26 15:24:34 +08:00
parent 21fd72501f
commit 4f065b02ad

11
menu.c
View File

@@ -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