nyx: adjust handling of touch return values

This commit is contained in:
CTCaer
2026-02-22 02:51:47 +02:00
parent 9b2026ac6e
commit 67a7d93a94
2 changed files with 9 additions and 5 deletions

View File

@@ -348,8 +348,12 @@ static bool _fts_touch_read(lv_indev_data_t *data)
return false;
}
if (console_enabled && !res)
if (console_enabled)
{
// If no event, keep last debug message.
if (res)
return false;
// Print input debugging in console.
gfx_con_getpos(&gfx_con.savedx, &gfx_con.savedy, &gfx_con.savedcol);
gfx_con_setpos(32, 638, GFX_COL_AUTO);
@@ -2516,7 +2520,7 @@ void nyx_load_and_run()
close_btn = NULL;
// Initialize touch.
touch_enabled = touch_power_on();
touch_enabled = !touch_power_on();
lv_indev_drv_t indev_drv_touch;
lv_indev_drv_init(&indev_drv_touch);
indev_drv_touch.type = LV_INDEV_TYPE_POINTER;