/ Published in: C++
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 // 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 );
Comments
                    Subscribe to comments
                
                