• Advertisement
Sign in to follow this  

Can you help me with input issue?

This topic is 4309 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
I'm not sure how much we can help you until you post your current code... is there some reason you can't do that?

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