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 ...@@ -144,12 +144,15 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
/*********** KEYBOARD MESSAGES ***********/ /*********** KEYBOARD MESSAGES ***********/
case WM_KEYDOWN: 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 if( !(lParam & 0x40000000) || kbd.AutorepeatIsEnabled() ) // filter autorepeat
{ {
kbd.OnKeyPressed( static_cast<unsigned char>(wParam) ); kbd.OnKeyPressed( static_cast<unsigned char>(wParam) );
} }
break; break;
case WM_KEYUP: case WM_KEYUP:
case WM_SYSKEYUP:
kbd.OnKeyReleased( static_cast<unsigned char>(wParam) ); kbd.OnKeyReleased( static_cast<unsigned char>(wParam) );
break; break;
case WM_CHAR: 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