mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-14 00:54:05 +02:00
fixed #156
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user