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:
parent
36cd6c9f71
commit
c5163f2d9a
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue