• Advertisement

Archived

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

dinput key input too fast

This topic is 6549 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 thought I had seen a post about this a while back but couldn''t find it. I just got direct input working with keys and I''m real impressed with how much smoother it is then the standard method but now it''s too fast and need some suggestions on how to slow it down. As an example I am using keys to cycle through my pieces to move them. Now it''s so fast that it jumps 3 or 4 pieces at a time. I am thinking of putting some kind of delay just after I run the code to change the current piece but was wondering if there is a better way. Can dinput trap keyup events or is it just keydown? Any suggestions would be much appreciated. Thanks, Arrow

Share this post


Link to post
Share on other sites
Advertisement
If all you want is to know when a key is pressed
and when it is released (and you don''t need to
deal with a repeating a command if the user holds
down a key), then you should look in the SDK docs
for DirectInput''s buffered mode.

Share this post


Link to post
Share on other sites

  • Advertisement