mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
check context code and previous key state on WM_SYSKEYDOWN
This commit is contained in:
parent
a50ab60c89
commit
c6ad63e837
@ -1474,7 +1474,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
case WM_SYSKEYDOWN:
|
case WM_SYSKEYDOWN:
|
||||||
{
|
{
|
||||||
if (wParam == VK_RETURN)
|
BOOL contextCode = (lParam & (1 << 29)) != 0;
|
||||||
|
BOOL keyState = (lParam & (1 << 30)) != 0;
|
||||||
|
|
||||||
|
if (wParam == VK_RETURN && contextCode && !keyState)
|
||||||
{
|
{
|
||||||
ToggleFullscreen();
|
ToggleFullscreen();
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user