Archived

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

Death Hamster

Turning off keyboard autorepeat

Recommended Posts

Death Hamster    122
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
Guest Anonymous Poster   
Guest Anonymous Poster
Forget messages.
Use GetAsyncKeyState() and check it every frame.

Share this post


Link to post
Share on other sites