X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fkeyb.c;h=8789ea782708d9b07ee5d669e479c0a1a644a8ec;hb=HEAD;hp=6b00866db33a73481b3abfcf9d040cecf5331294;hpb=f36f642406d972f4a6644dc9a022e7c037a801c1;p=retroray diff --git a/src/dos/keyb.c b/src/dos/keyb.c index 6b00866..8789ea7 100644 --- a/src/dos/keyb.c +++ b/src/dos/keyb.c @@ -73,7 +73,7 @@ static unsigned char keystate[512]; void kb_init(void) { if(DONE_INIT) { - fprintf(stderr, "keyboard driver already initialized!\n"); + errormsg("keyboard driver already initialized!\n"); return; } @@ -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;