Skip to main content
gamedev.net
🔒 Locked

GetAsyncKeyState speed

Started by aviosity 1 reply 1.2k views
Original Post
aviosity
aviosity
Hey folks, Quick question about GetAsyncKeyState. I'm thinking about using it in my keyboard class, which gets keypresses and then determines which action to take based on the keypress. My question is: how fast is GetAsyncKeyState? For example, would it be slow to put GetAsyncKeyState in a loop to check for each key that I'm looking for, or even a bunch of GetAsyncKeyStates in a switch...case? Thanks a lot, Aviosity
aviosity
aviosity
Dave, great solution, makes things even easier for me. Thanks a bunch!

Aviosity

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.