Jump to content
  • Advertisement
Sign in to follow this  
sekai

[solved] problems with glut+multiple keyboard keys

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

Hi everyone! I'm having cg in my university and now i'm learning ogl and glut. As part of evaluation i'm to do a 3 step project and I decided to do something like the good old micromachines :) Everything is going fine except the input thing... I use something like:
glutIgnoreKeyRepeat(true);
glutSpecialFunc(specialdown);
glutSpecialUpFunc(specialup);



and in specialdown and specialup I change the state of a variable to be checked every time I need to know if a specific key is down... Everything should be fine and is fine as long as I only press one key at a time. If I press a key(holding it) and press a second key, the second key is not detected unless I press it a second time :S Need help! :( thanks in advance ;) EDIT:Problem solved... I just deleted the glutIgnoreKeyRepeat(true); :P [Edited by - sekai on November 8, 2008 9:15:58 AM]

Share this post


Link to post
Share on other sites
Advertisement
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!