dinput key input too fast

Started by
0 comments, last by arrow62 24 years, 2 months ago
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
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.

This topic is closed to new replies.

Advertisement