From 470d1959ba80eb8c7aac2f1d7b54aed5cf869de1 Mon Sep 17 00:00:00 2001 From: mrkusypl Date: Sun, 15 Mar 2026 01:31:53 +0100 Subject: [PATCH] K5Viewer: More reliable key handling --- App/app/app.c | 6 ++++++ App/app/breakout.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/App/app/app.c b/App/app/app.c index 264bf7ce..7f172faf 100644 --- a/App/app/app.c +++ b/App/app/app.c @@ -892,6 +892,12 @@ static void HandleVox(void) void APP_Update(void) { +#ifdef ENABLE_FEAT_F4HWN_SCREENSHOT + // Parse incoming packets on every tick so serial keys are never missed, + // regardless of whether the screen needs redrawing. + SCREENSHOT_ParseInput(); +#endif + #ifdef ENABLE_VOICE if (gFlagPlayQueuedVoice) { AUDIO_PlayQueuedVoice(); diff --git a/App/app/breakout.c b/App/app/breakout.c index b55b178b..1e667772 100644 --- a/App/app/breakout.c +++ b/App/app/breakout.c @@ -416,6 +416,12 @@ static KEY_Code_t GetKey() // HandleUserInput static bool HandleUserInput() { +#ifdef ENABLE_FEAT_F4HWN_SCREENSHOT + // Parse incoming packets on every tick so serial keys are never missed, + // regardless of whether the screen needs redrawing. + SCREENSHOT_ParseInput(); +#endif + kbd.prev = kbd.current; kbd.current = GetKey();