c++ - Keyevent in Windows -
Is it possible to get an event for the key pressed in Windows (APP)? I have a thread, there is some time in it (1) -Loop and I print some data there. It should be synchronized that I should use WaitForMultipleObjects (2, events, incorrect, INFINITE); The event has an array of handles and it has 2 handles, one of them is an incident from another thread which indicates that the server has received a new message and the other should indicate that the user pressed a key (1-7) is. How do I get this second handle / event?
You MsgWaitForMultipleObjects . It can also retrieve messages, such as
WM_KEYDOWN for you major events, you do not need the
handle .
Comments
Post a Comment