Reduce synthetic key hold time
authorRobert Pengelly <robertapengelly@hotmail.com>
Sun, 25 Oct 2026 03:16:34 +0000 (03:16 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sun, 25 Oct 2026 03:16:34 +0000 (03:16 +0000)
cpu.c

diff --git a/cpu.c b/cpu.c
index 0bbf31b69e8b0029f4ed205e3c6f07ff004a5247..0125863e3a7c0ee51fcdbc00b6026b1cb3446971 100644 (file)
--- a/cpu.c
+++ b/cpu.c
@@ -1902,7 +1902,7 @@ static uint8_t io_read8 (CPU8086 *cpu, uint16_t port) {
                 cpu->kbd_scancode_pending = 0;
                 
                 if (cpu->kbd_release_scancode) {
-                    cpu->kbd_release_time = pit_clock_ns () + 150000000ULL;
+                    cpu->kbd_release_time = pit_clock_ns () + 25000000ULL;
                 }
                 
                 return cpu->kbd_scancode;