mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 08:08:36 -07:00
Oops
This commit is contained in:
@@ -56,32 +56,32 @@ static bool findmy_main_input_callback(InputEvent* event, void* context) {
|
|||||||
|
|
||||||
if(event->type == InputTypePress) {
|
if(event->type == InputTypePress) {
|
||||||
consumed = true;
|
consumed = true;
|
||||||
FindMyMainEvent event;
|
FindMyMainEvent cb_event;
|
||||||
|
|
||||||
switch(event->key) {
|
switch(event->key) {
|
||||||
case InputKeyBack:
|
case InputKeyBack:
|
||||||
event = FindMyMainEventQuit;
|
cb_event = FindMyMainEventQuit;
|
||||||
break;
|
break;
|
||||||
case InputKeyOk:
|
case InputKeyOk:
|
||||||
event = FindMyMainEventToggle;
|
cb_event = FindMyMainEventToggle;
|
||||||
break;
|
break;
|
||||||
case InputKeyLeft:
|
case InputKeyLeft:
|
||||||
event = FindMyMainEventBackground;
|
cb_event = FindMyMainEventBackground;
|
||||||
break;
|
break;
|
||||||
case InputKeyRight:
|
case InputKeyRight:
|
||||||
event = FindMyMainEventConfig;
|
cb_event = FindMyMainEventConfig;
|
||||||
break;
|
break;
|
||||||
case InputKeyUp:
|
case InputKeyUp:
|
||||||
event = FindMyMainEventIntervalUp;
|
cb_event = FindMyMainEventIntervalUp;
|
||||||
break;
|
break;
|
||||||
case InputKeyDown:
|
case InputKeyDown:
|
||||||
event = FindMyMainEventIntervalDown;
|
cb_event = FindMyMainEventIntervalDown;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return consumed;
|
return consumed;
|
||||||
}
|
}
|
||||||
|
|
||||||
findmy_main->callback(event, findmy_main->context);
|
findmy_main->callback(cb_event, findmy_main->context);
|
||||||
}
|
}
|
||||||
|
|
||||||
return consumed;
|
return consumed;
|
||||||
|
|||||||
Reference in New Issue
Block a user