Key input in windows
I want to read combinations with the control, alt and shift keys. I want to do this in the WM_KEYUP or WM_KEYDOWN events, but I don''t know how to extract this information from lParam and wParam.
Thx in advance
look into MSDN, or search google for : GetKeyState()
i think, that''s what you''re looking for...
i think, that''s what you''re looking for...
wParam will be the actual Key that is pressed (it''s ASCII code anyway)
lParam is the ancilliary information, including if the key is already down, just been pressed, etc.
The F1 keys are VK_ (virtual keys, and I suspect that the ones you are after will be too.)
MSDN is your best bet for full info though.
Bp.
lParam is the ancilliary information, including if the key is already down, just been pressed, etc.
The F1 keys are VK_ (virtual keys, and I suspect that the ones you are after will be too.)
MSDN is your best bet for full info though.
Bp.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement