Merge pull request #216 from mrkusypl/v5_k5viewer_input

K5Viewer: More reliable key handling
This commit is contained in:
Armel FAUVEAU authored and GitHub committed 2026-03-15 02:02:35 +01:00
commit ee5878d641
2 files changed
+12

No files matched your search

+6
View File
@@ -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();
+6
View File
@@ -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();