Help with VK

I need help with setting up some C++ code

Make it so if you hold down Spacebar it spams it
using VK
What? You're not making any sense.
Guessing you want to use VK_SPACE and know when the user is holding it down so it continues to put spaces. I don't use win32 but looks like GetAsyncKeyState() would help.

http://stackoverflow.com/questions/8640208/what-is-the-fastest-way-to-determine-a-key-press-and-key-holding-in-win32

Otherwise use some flags with WM_KEYDOWN/WM_KEYUP and keep track of when space is pressed.
James has right!
Topic archived. No new replies allowed.