Update apps pt2

This commit is contained in:
Willy-JL
2023-03-09 01:51:24 +00:00
parent e4998bf330
commit a5ee8673d6
89 changed files with 825 additions and 283 deletions

View File

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