Jump to content

  • Log In with Google      Sign In   
  • Create Account

dinput key input too fast


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 arrow62   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 February 2000 - 04:47 AM

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

Sponsor:

#2 LordFoul   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 February 2000 - 04:50 AM

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.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS