Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

VK_SNAPSHOT and KEYDOWN

$
0
0
I want to take a screenshot when to user presses "print screen" or ALT + "print screen". I succeed by listening for up keys: case WM_KEYUP: { switch(wParam) { case VK_SNAPSHOT: SwapChain::Get()->TakeScreenShot(); default: return DefWindowProc(hWnd, msg, wParam, lParam); } } case WM_SYSKEYUP: { switch(wParam) { case VK_SNAPSHOT: SwapChain::Get()->TakeScreenShot(); default: return DefWindowProc(hWnd, msg, wParam, lParam); } } This does not work for down keys for VK_SNAPSHOT. Why is this the case?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>