cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Help with VK
Help with VK
Aug 29, 2015 at 11:48pm UTC
SFKZ
(1)
I need help with setting up some C++ code
Make it so if you hold down Spacebar it spams it
using VK
Aug 30, 2015 at 12:06am UTC
helios
(17574)
What? You're not making any sense.
Aug 30, 2015 at 12:16am UTC
Hippogriff
(727)
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.
Aug 30, 2015 at 2:39pm UTC
robert172
(2)
James has right!
Topic archived. No new replies allowed.