Skip to content
Snippets Groups Projects
Commit c1e92016 authored by deuce's avatar deuce
Browse files

Shotgun approach to fixing the numeric keypad with numlock off.

parent b702089a
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,9 @@ int win32_keyboardio(int isgetch)
case KEY_EVENT:
if(input.Event.KeyEvent.bKeyDown) {
if((input.Event.KeyEvent.dwControlKeyState & (RIGHT_ALT_PRESSED|LEFT_ALT_PRESSED|RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED|ENHANCED_KEY))
|| (input.Event.KeyEvent.wVirtualKeyCode >= VK_F1 && input.Event.KeyEvent.wVirtualKeyCode <= VK_F24))
|| (input.Event.KeyEvent.wVirtualKeyCode >= VK_F1 && input.Event.KeyEvent.wVirtualKeyCode <= VK_F24)
|| !input.Event.KeyEvent.uChar.AsciiChar
|| (!(input.Event.KeyEvent.dwControlKeyState & NUMLOCK_ON) && (input.Event.KeyEvent.uChar.AsciiChar >= '0' && input.Event.KeyEvent.uChar.AsciiChar <= '9')))
lastch=win32_getchcode(input.Event.KeyEvent.wVirtualKeyCode, input.Event.KeyEvent.dwControlKeyState);
else
lastch=input.Event.KeyEvent.uChar.AsciiChar;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment