From c5163f2d9a5f2149ec3dfd391a055f5d3c7e6160 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 6 Jul 2023 19:48:04 +0200 Subject: [PATCH] input: use PDKeyDown3 in PDGetASCIIFromKey (#323) * input: use PDKeyDown3 in PDGetASCIIFromKey PDKeyDown3 does not modify last_key_down and last_key_down_time --- src/DETHRACE/pc-win95/win95sys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DETHRACE/pc-win95/win95sys.c b/src/DETHRACE/pc-win95/win95sys.c index 77175309..086ab075 100644 --- a/src/DETHRACE/pc-win95/win95sys.c +++ b/src/DETHRACE/pc-win95/win95sys.c @@ -308,7 +308,8 @@ void Win32ReleaseInputDevice(void) { int PDGetASCIIFromKey(int pKey) { LOG_TRACE("(%d)", pKey); - if (PDKeyDown(KEY_SHIFT_ANY)) { + /* The Windows Carmageddon executable uses PDKeyDown here. The German DOS executable uses PDKeyDown3. */ + if (PDKeyDown3(KEY_SHIFT_ANY)) { return gASCII_shift_table[pKey]; } else { return gASCII_table[pKey];