mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-26 03:39:58 -07:00
Update apps pt2
This commit is contained in:
@@ -19,8 +19,6 @@ void text_input_result_callback(void* ctx) {
|
||||
}
|
||||
|
||||
void text_input_input_handler(CliguiApp* app, InputEvent* event) {
|
||||
UNUSED(app);
|
||||
UNUSED(event);
|
||||
if(event->type == InputTypeShort && event->key == InputKeyBack) {
|
||||
// view_dispatcher_switch_to_view(app->view_dispatcher, ViewConsoleOutput);
|
||||
// app->data->state = ViewConsoleOutput;
|
||||
@@ -28,4 +26,9 @@ void text_input_input_handler(CliguiApp* app, InputEvent* event) {
|
||||
app->text_input_store[len] = ' ';
|
||||
app->text_input_store[len + 1] = 0;
|
||||
}
|
||||
if(event->type == InputTypeLong &&
|
||||
(event->key == InputKeyLeft || event->key == InputKeyRight)) {
|
||||
view_dispatcher_switch_to_view(app->view_dispatcher, ViewConsoleOutput);
|
||||
app->data->state = ViewConsoleOutput;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user