Jump to content
  • Advertisement

Archived

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

jimi345

keyboard rate

This topic is 5495 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 allegro to build a demo and I''ve been messing with what is referred to as the keyboard rate via the keyboard_rate function. The proto type is as follows: void set_keyboard_rate(int delay, int repeat); I''ve been messing with it and have a general idea, but I"m pretty foggy on what exactly the delay argument is and what the repeat argument is. Both of the arguments are in milliseconds if that helps anyone. Jeremy

Share this post


Link to post
Share on other sites
Advertisement
I''d guess that delay represents how long you have to hold down a button before it repeats. Repeat probably then says how long after the initial repeat it will take before it will repeat again. Try holding down a key once. After about a half of a second (delay) it will repeat at about a tenth of a second (repeat).

______________________________________________________________
The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ
MySite
______________________________________________________________

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!