View Full Version: VkKeyScan()

Fake2knet > programming & scripting > VkKeyScan()



Title: VkKeyScan()


Jed - May 7, 2008 06:39 AM (GMT)
After having Bret point me to the right function, google and msdn confusing the living hell out of me by sending me in a circle between this, VkKeyScanEx() and WM_KEYDOWN() without much sense between them, I figured I'd dump the q here.

Eventually I want the arrow keys to adjust the x/y values, simple enough once I get the key detection going. For now I'd just be happy to have it complie and come up telling me the key's pressed when it is.

http://pastebin.com/m648bf4aa

If it makes a difference, I'm running Dev-C++.

Bret - May 8, 2008 05:25 AM (GMT)
http://pastebin.com/m63e68f20

Here you go Jed, I've added the new code for you with a demonstration of how to do both character key checking and things like escape and tab. I changed a couple of things for structure too. I hope this was helpful.




Hosted for free by InvisionFree