From: John Tsiombikas Date: Tue, 4 Jul 2023 21:43:02 +0000 (+0300) Subject: stop appending repeat keys to the input buffer X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=retroray stop appending repeat keys to the input buffer --- 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"