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) {
|
bool Win32Window::HandleKeyboard(UINT message, WPARAM wParam, LPARAM lParam) {
|
||||||
auto e = KeyEvent(this, static_cast<int>(wParam), lParam & 0xFFFF,
|
auto e = KeyEvent(this, static_cast<int>(wParam), lParam & 0xFFFF0000,
|
||||||
!!(lParam & 0x00000002));
|
!!(lParam & 0x2));
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
OnKeyDown(&e);
|
OnKeyDown(&e);
|
||||||
|
|
Loading…
Reference in New Issue