Explorar o código

Pressing OK resets current signal in info view.

antirez %!s(int64=3) %!d(string=hai) anos
pai
achega
10d17fe212
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  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);
+        }
+    }
 }