Jump to content
  • Advertisement
Sign in to follow this  
okonomiyaki

Slight pause between first key press and holding down

This topic is 4705 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'm using DirectInput, but I'm assuming this problems comes from the way Windows handles key presses. In Windows, if you hold down a key, there is a slight pause between the first key press and the repeated presses resulting from holding it down. In my game, I'm suffering from this problem. How do bypass this? I am using DirectInput, and I thought DirectInput would totally bypass the Windows Message Pump mechanism. Evidentally it doesn't. Seems like you'd have to use something totally different to retrieve keyboard input, such as SDL, which I don't really want to do... I've read something about this somewhere, but I can't come up with anything. I'm not exactly what keywords to use while searching also.

Share this post


Link to post
Share on other sites
Advertisement
DirectInput does not go through windows. A key is either down or not, no pause.

Perhaps you should post your code? I have no idea why you'd get a pause other than a really crappy framerate.

Also SDL is a wrapper over the windows message pump(or at least it seems like it), so that definatly isn't going to solve your problems.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!