From edc060da817a2c0c41d4053f2539f16a63540e01 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 5 Jul 2023 00:43:02 +0300 Subject: [PATCH] stop appending repeat keys to the input buffer --- src/dos/keyb.c | 2 +- src/dos/timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dos/keyb.c b/src/dos/keyb.c index b67434c..8789ea7 100644 --- a/src/dos/keyb.c +++ b/src/dos/keyb.c @@ -238,7 +238,7 @@ static void INTERRUPT kbintr() c = (keystate[KEY_LSHIFT] | keystate[KEY_RSHIFT]) ? scantbl_shift[code] : key; } - if(press) { + if(press && !keystate[key]) { /* append to buffer */ last_key = c; buffer[buf_widx] = c; diff --git a/src/dos/timer.c b/src/dos/timer.c index b7cd6a2..1bac207 100644 --- a/src/dos/timer.c +++ b/src/dos/timer.c @@ -15,7 +15,7 @@ #endif #include "pit8254.h" -#include "inttypes.h" +#include "sizeint.h" #include "util.h" #include "dosutil.h" -- 1.7.10.4