From f5104af0a2c2266e4ce02db8b73999cadd377fcd Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Tue, 18 Aug 2015 19:00:57 -0500 Subject: [PATCH] Whoops, fix AND masks --- src/xenia/ui/window_win.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/ui/window_win.cc b/src/xenia/ui/window_win.cc index f45631bf3..e2b432aff 100644 --- a/src/xenia/ui/window_win.cc +++ b/src/xenia/ui/window_win.cc @@ -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(wParam), lParam & 0xFFFF, - !!(lParam & 0x00000002)); + auto e = KeyEvent(this, static_cast(wParam), lParam & 0xFFFF0000, + !!(lParam & 0x2)); switch (message) { case WM_KEYDOWN: OnKeyDown(&e);