Windows sends F10 and alt presses using these instead of the usual
messages.
case WM_KEYDOWN:
case WM_KEYUP:
case WM_CHAR:
+ case WM_SYSKEYDOWN:
+ case WM_SYSKEYUP:
+ case WM_SYSCHAR:
case WM_LBUTTONDOWN:
case WM_LBUTTONUP:
case WM_MBUTTONDOWN:
{
case WM_KEYDOWN:
case WM_KEYUP:
+ case WM_SYSKEYDOWN:
+ case WM_SYSKEYUP:
{
unsigned key = event.wparam | ((event.lparam>>16)&0x100);
if(key==VK_SHIFT)
else
key = VK_LSHIFT;
}
- set_button_state(key_from_sys(key), event.msg==WM_KEYDOWN, true);
+ set_button_state(key_from_sys(key), (event.msg==WM_KEYDOWN || event.msg==WM_SYSKEYDOWN), true);
}
break;
case WM_CHAR: