mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 15:11:51 +00:00
Don't overflow scantoasc[] with high scancodes. This makes the 'T' key work in the console on my laptop.
git-svn-id: https://svn.eduke32.com/eduke32@1548 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
281fc8e8ab
commit
179997f969
1 changed files with 1 additions and 1 deletions
|
@ -4366,7 +4366,7 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
case WM_CHAR:
|
||||
if (((keyasciififoend+1)&(KEYFIFOSIZ-1)) == keyasciififoplc) return 0;
|
||||
if ((keyasciififoend - keyasciififoplc) > 0) return 0;
|
||||
if (Btolower(scantoasc[OSD_OSDKey()]) == Btolower((uint8_t)wParam)) return 0;
|
||||
if ((OSD_OSDKey() < 128) && (Btolower(scantoasc[OSD_OSDKey()]) == Btolower((uint8_t)wParam))) return 0;
|
||||
if (!OSD_HandleChar((uint8_t)wParam)) return 0;
|
||||
keyasciififo[keyasciififoend] = (uint8_t)wParam;
|
||||
keyasciififoend = ((keyasciififoend+1)&(KEYFIFOSIZ-1));
|
||||
|
|
Loading…
Reference in a new issue