mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
change screenshot key, configurable location
This commit is contained in:
19
windows.cpp
19
windows.cpp
@@ -68,23 +68,26 @@ LRESULT APIENTRY WndProc( HWND hWnd, // handle for this window
|
||||
}
|
||||
case WM_KEYDOWN:
|
||||
case WM_KEYUP: {
|
||||
if (wParam == VK_INSERT || wParam == VK_DELETE || wParam == VK_HOME || wParam == VK_END || wParam == VK_PRIOR || wParam == VK_NEXT)
|
||||
if (wParam == VK_INSERT || wParam == VK_DELETE || wParam == VK_HOME || wParam == VK_END ||
|
||||
wParam == VK_PRIOR || wParam == VK_NEXT || wParam == VK_SNAPSHOT)
|
||||
lParam &= ~0x1ff0000;
|
||||
if (wParam == VK_INSERT)
|
||||
if (wParam == VK_INSERT)
|
||||
lParam |= 0x152 << 16;
|
||||
if (wParam == VK_DELETE)
|
||||
else if (wParam == VK_DELETE)
|
||||
lParam |= 0x153 << 16;
|
||||
if (wParam == VK_HOME)
|
||||
else if (wParam == VK_HOME)
|
||||
lParam |= 0x147 << 16;
|
||||
if (wParam == VK_END)
|
||||
else if (wParam == VK_END)
|
||||
lParam |= 0x14F << 16;
|
||||
if (wParam == VK_PRIOR)
|
||||
else if (wParam == VK_PRIOR)
|
||||
lParam |= 0x149 << 16;
|
||||
if (wParam == VK_NEXT)
|
||||
else if (wParam == VK_NEXT)
|
||||
lParam |= 0x151 << 16;
|
||||
else if (wParam == VK_SNAPSHOT)
|
||||
lParam |= 0x137 << 16;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// pass all unhandled messages to DefWindowProc
|
||||
// pass all messages to DefWindowProc
|
||||
return CallWindowProc( BaseWindowProc, Hwnd, uMsg, wParam, lParam );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user