mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 22:07:14 +03:00
menu: drop left/right keys navigation (#510)
Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
parent
3c6f236df3
commit
22ffd6204b
@ -253,10 +253,6 @@ int32_t menu_task(void* p) {
|
||||
menu_down(menu);
|
||||
} else if(m.type == MenuMessageTypeOk) {
|
||||
menu_ok(menu);
|
||||
} else if(m.type == MenuMessageTypeLeft) {
|
||||
menu_back(menu);
|
||||
} else if(m.type == MenuMessageTypeRight) {
|
||||
menu_ok(menu);
|
||||
} else if(m.type == MenuMessageTypeBack) {
|
||||
menu_back(menu);
|
||||
} else if(m.type == MenuMessageTypeIdle) {
|
||||
|
@ -53,10 +53,6 @@ void menu_event_input_callback(InputEvent* input_event, void* context) {
|
||||
message.type = MenuMessageTypeUp;
|
||||
} else if(input_event->key == InputKeyDown) {
|
||||
message.type = MenuMessageTypeDown;
|
||||
} else if(input_event->key == InputKeyRight) {
|
||||
message.type = MenuMessageTypeRight;
|
||||
} else if(input_event->key == InputKeyLeft) {
|
||||
message.type = MenuMessageTypeLeft;
|
||||
} else if(input_event->key == InputKeyOk) {
|
||||
message.type = MenuMessageTypeOk;
|
||||
} else if(input_event->key == InputKeyBack) {
|
||||
|
Loading…
Reference in New Issue
Block a user