Whoops, fix AND masks

This commit is contained in:
Dr. Chat 2015-08-18 19:00:57 -05:00
parent 29ed27bfc5
commit f5104af0a2
1 changed files with 2 additions and 2 deletions

View File

@ -503,8 +503,8 @@ bool Win32Window::HandleMouse(UINT message, WPARAM wParam, LPARAM lParam) {
}
bool Win32Window::HandleKeyboard(UINT message, WPARAM wParam, LPARAM lParam) {
auto e = KeyEvent(this, static_cast<int>(wParam), lParam & 0xFFFF,
!!(lParam & 0x00000002));
auto e = KeyEvent(this, static_cast<int>(wParam), lParam & 0xFFFF0000,
!!(lParam & 0x2));
switch (message) {
case WM_KEYDOWN:
OnKeyDown(&e);