help me
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
the function to get all char in keyboard is GetKeyboardState.what is the function to know whether ctrl or shift is pressed.Also can u tell how to get the mouse events
// Ctrl key pressed?
if (GetKeyState(VK_CONTROL) & 0x8000)
{}// Shift key pressed?
If (GetKeyState(VK_SHIFT) & 0x8000)
{}// Left Mouse Button pressed?
If (GetKeyState(VK_LBUTTON) & 0x8000)
{}...