input: use PDKeyDown3 in PDGetASCIIFromKey (#323)

* input: use PDKeyDown3 in PDGetASCIIFromKey

PDKeyDown3 does not modify last_key_down and last_key_down_time
This commit is contained in:
Anonymous Maarten 2023-07-06 19:48:04 +02:00 committed by GitHub
parent 36cd6c9f71
commit c5163f2d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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];