Window keys
Hello,
I'm starting Windows programming and I'm searching how I can simply retrieve the current key pressed...
Thanks for your answer!
First of all you need a message loop so that your program can check for keypresses.
Click on the links for tutorials on how to create a message loop and how to accept keyboard input.
Click on the links for tutorials on how to create a message loop and how to accept keyboard input.
You can also use GetAsyncKeyState from the Windows API. You can find the details on it's use at MSDN. I suspect undeads method is the easier of the two if you're using C.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement