Whoops, fix AND masks
This commit is contained in:
parent
29ed27bfc5
commit
f5104af0a2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue