Просмотр исходного кода

Pressing OK resets current signal in info view.

antirez 3 лет назад
Родитель
Сommit
10d17fe212
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      view_info.c

+ 7 - 4
view_info.c

@@ -31,9 +31,12 @@ void render_view_info(Canvas *const canvas, ProtoViewApp *app) {
     canvas_draw_str(canvas, 0, y, app->signal_info.info4); y += lineheight;
 }
 
-/* Handle input for the settings view. */
+/* Handle input for the info view. */
 void process_input_info(ProtoViewApp *app, InputEvent input) {
-    UNUSED(app);
-    UNUSED(input);
-    return;
+    if (input.type == InputTypeShort) {
+        if (input.key == InputKeyOk) {
+            /* Reset the current sample to capture the next. */
+            reset_current_signal(app);
+        }
+    }
 }