Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Death Hamster

Turning off keyboard autorepeat

This topic is 5410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on a First person shooter from scratch. The interface is the usual WASD and mouse look. The problem is when the user wants to move arround he/she has to hold the ''w'',''a'',''s'' or ''d'' key down. This results in the windows message queue getting bogged down and the whole game slowing. I know it can''t be anything else because the world updates smoothly when I am not holding a key down. Does any one know a way of squishing this bug?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Forget messages.
Use GetAsyncKeyState() and check it every frame.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!