Revision: 10172
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 11, 2008 00:05 by jimfred
Initial Code
// Header Declared in Winuser.h, include Windows.h // Import library User32.lib // Look for a shift key to be pressed. // '& 0x8000' tests the high-order bit. 1=key is down; 0=up. // '!!' will bool-ize the result. bool shift = !!( ::GetKeyState(VK_SHIFT) & 0x8000 );
Initial URL
Initial Description
Initial Title
Win32 API to check shift state
Initial Tags
windows, api
Initial Language
C++