From e979d6d74eb1cb2dfd84b5aa930624613cf03542 Mon Sep 17 00:00:00 2001 From: qufb <93520295+qufb@users.noreply.github.com> Date: Wed, 29 Jun 2022 23:00:04 +0100 Subject: [PATCH] Fix key up for typematic --- pico/pico/memory.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pico/pico/memory.c b/pico/pico/memory.c index c2e09046..2f63de39 100644 --- a/pico/pico/memory.c +++ b/pico/pico/memory.c @@ -230,6 +230,10 @@ static u32 PicoRead8_pico_kb(u32 a) else elprintf(EL_PICOHW, "PicoPicohw.kb.key_state: SHIFT DOWN\n"); } + // Must register key up while typematic not active (expected by Kibodeu Piko) + if ((d & 8) == 0) { + d |= 1; // Send key up a.k.a. break + } } if (PicoPicohw.kb.key_state == KEY_UP || PicoPicohw.kb.shift_state == SHIFT_UP_HELD_DOWN -- 2.39.5