From f5b6f318bba44a588efc7ae62717027838c7bd11 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Fri, 11 Dec 2020 14:25:38 +0100 Subject: [PATCH] Corrected keypress bug --- ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui.c b/ui.c index de4f7a3..8e86ad4 100644 --- a/ui.c +++ b/ui.c @@ -431,7 +431,7 @@ show_version(void) ili9341_drawstring(info_about[i++], x, y+=5); } while (true) { - if (touch_check() == EVT_TOUCH_RELEASED) + if (touch_check() == EVT_TOUCH_PRESSED) break; if (btn_check() & EVT_BUTTON_SINGLE_CLICK) break; @@ -2459,7 +2459,7 @@ ui_process_keypad(void) break; } - if (touch_check() == EVT_TOUCH_RELEASED) { + if (touch_check() == EVT_TOUCH_PRESSED) { int key = keypad_apply_touch(); if (key >= 0 && keypad_click(key)) /* exit loop on done or cancel */ @@ -2560,7 +2560,7 @@ static int touch_quick_menu(void) { int touch_x, touch_y; touch_position(&touch_x, &touch_y); - if (touch_x