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:
plagman 2009-12-03 04:41:09 +00:00
parent 281fc8e8ab
commit 179997f969

View file

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