1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 09:04:31 +02:00
This commit is contained in:
XProger
2019-01-27 18:27:53 +03:00
parent 420e7b88f9
commit 697213f409

View File

@@ -527,7 +527,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
case WM_KEYUP :
case WM_SYSKEYDOWN :
case WM_SYSKEYUP :
if (msg == WM_SYSKEYDOWN && wParam == VK_RETURN) { // switch to fullscreen or window
if (msg == WM_SYSKEYDOWN && wParam == VK_RETURN) { // Alt + Enter - switch to fullscreen or window
static WINDOWPLACEMENT pLast;
DWORD style = GetWindowLong(hWnd, GWL_STYLE);
if (style & WS_OVERLAPPEDWINDOW) {
@@ -543,6 +543,10 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
}
break;
}
if (msg == WM_SYSKEYDOWN && wParam == VK_F4) { // Alt + F4 - close application
Core::quit();
break;
}
Input::setDown(keyToInputKey(wParam), msg == WM_KEYDOWN || msg == WM_SYSKEYDOWN);
break;
// mouse