Turning off keyboard autorepeat

Started by
1 comment, last by Death Hamster 20 years, 7 months ago
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?
Programming is like dancing through landmines:The programmer is the choreographer, the computer is the dancer and when an error occurs something blows up.
Advertisement
use DirectInput?
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
Forget messages.
Use GetAsyncKeyState() and check it every frame.

This topic is closed to new replies.

Advertisement