crazy hack for weird numpads on windows

This commit is contained in:
milek7
2017-09-04 18:57:00 +02:00
committed by tmj-fstate
parent 25ec32d0e6
commit 3d1d3a0b67

View File

@@ -65,7 +65,13 @@ LRESULT APIENTRY WndProc( HWND hWnd, // handle for this window
multiplayer::OnCommandGet( ( multiplayer::DaneRozkaz *)( pDane->lpData ) );
break;
}
case WM_KEYDOWN:
case WM_KEYUP: {
lParam &= ~0x1ff0000;
lParam |= MapVirtualKey(MAPVK_VK_TO_VSC, wParam) << 16;
break;
}
}
// pass all unhandled messages to DefWindowProc
return CallWindowProc( BaseWindowProc, Hwnd, uMsg, wParam, lParam );
};
};