Not sure how to go about detecting whether the hi order bit is 1...which is what I need D:Code:WORD keyState; //............. keyState = GetKeyState(VK_SHIFT); if(HIWORD(keyState) & 0x80) { MessageBox(NULL, TEXT("SHIFT Down"), TEXT("Key State"), MB_OK); }
-edit-
ok nm I got it
Code:if(GetKeyState(VK_SHIFT) & 0x80) { MessageBox(NULL, TEXT("SHIFT Down"), TEXT("Key State"), MB_OK); }




Reply With Quote