Commit 43c76ca6 authored by chili's avatar chili
Browse files

sexy syskeys

parent 7a4873bb
......@@ -144,12 +144,15 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
/*********** KEYBOARD MESSAGES ***********/
case WM_KEYDOWN:
// syskey commands need to be handled to track ALT key (VK_MENU) and F10
case WM_SYSKEYDOWN:
if( !(lParam & 0x40000000) || kbd.AutorepeatIsEnabled() ) // filter autorepeat
{
kbd.OnKeyPressed( static_cast<unsigned char>(wParam) );
}
break;
case WM_KEYUP:
case WM_SYSKEYUP:
kbd.OnKeyReleased( static_cast<unsigned char>(wParam) );
break;
case WM_CHAR:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment