Jump to content
  • Advertisement
Sign in to follow this  
fooman_69

Can you help me with input issue?

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

Hello, I have certain keys that need to be disregarded after the initial press of the key (if they are held down). Such as the 'Enter' key or some other 1-hit key. I DO set the key to false in my logic, but it still seems as if it is being held down and is being quickly switched from true/false rapidly. Is there something I need to do besides set the key to false in my input handling routine?

Share this post


Link to post
Share on other sites
Advertisement
For first, what are you using (GLUT? Win32? SDL? X?)...
I've never had those problems using DirectInput nor I had using WM_KEYUP and WM_KEYDOWN.

Share this post


Link to post
Share on other sites
Please excuse my lack of follow-up. I forgot I posted this issue in this forum and reposted it in another forum. I received a some help and now use a second array that compares the current and previous frames to determine if they key is being held down or just being pressed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!