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

Function key paranoia.

parent 5dd7080a
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,8 @@ int win32_keyboardio(int isgetch)
switch(input.EventType) {
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))
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))
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