mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-25 16:00:12 +00:00
13 lines
518 B
C
13 lines
518 B
C
|
#include "console_output.h"
|
||
|
|
||
|
void console_output_input_handler(CliguiApp* app, InputEvent* event) {
|
||
|
if(event->type == InputTypeShort && (event->key == InputKeyOk || event->key == InputKeyLeft)) {
|
||
|
view_dispatcher_switch_to_view(app->view_dispatcher, ViewTextInput);
|
||
|
app->data->state = ViewTextInput;
|
||
|
}
|
||
|
if(event->type == InputTypeShort && event->key == InputKeyBack) {
|
||
|
char eot = 0x03;
|
||
|
furi_stream_buffer_send(app->data->streams.app_tx, &eot, 1, FuriWaitForever);
|
||
|
}
|
||
|
|
||
|
}
|