Archived

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

DInput8

This topic is 5673 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

okie, i managed to have DInput8 usage for my tetris clonie. But i noticed that, for keyboard inputs, only one keyboard action takes place after the key is "pressed and held down". How could i have the action to repeat w/o problems of an infinite loop, that is, if i hold down the key, the keyboard input will keep processing, until i lift up the key?

Share this post


Link to post
Share on other sites
Try a table of keys that store the up/down state of the keys. When you get a down message, set it to true. When you get an up message set it to false.

Then, in your game, look at the table instead of keying directly off DInput.

Make sense?

How to handle delays and repeat rates is an additional matter.

[edited by - Waverider on June 5, 2002 11:44:30 AM]

Share this post


Link to post
Share on other sites
firstly, i dun understand what u mean.

previously, i know how to stop repeated movements, and limiting them to being executed once, but what i am trying to do now
is the reverse.

Share this post


Link to post
Share on other sites