mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Merge pull request #216 from mrkusypl/v5_k5viewer_input
K5Viewer: More reliable key handling
This commit is contained in:
2 files changed
+12
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user