Sign in to follow this  
Arty

Delay when pressing keys

Recommended Posts

Arty    122
Hello! I am trying to do the NeHe lessons on a Gentoo Linux (more or less newbie with Linux). Regardless whether I type the code myself or whether I use the downloadable code I have the following problem: The keypresses are delayed massively. When I press the ESC key to leave the program I have to wait up to 5 seconds until it takes effect. I also implemented a key in the rotation tutorial (lesson 4) so it only rotates when I press "r". This works perfektly, but only with a delay as well. If I keep the key pressed it takes about 5 seconds until the rotation starts. If I keep the key pressed it continues rotating until I release the key. If I release the key the rotation stops immediately. Does anyone have an idea what is wrong with this? Thanks a big lot! Arty

Share this post


Link to post
Share on other sites
Arty    122
Since nothing else causes any problems I doubt that a lib is wrongly compiled. Any other code compiles fine and has no problems at all with keypresses.

Very weird indeed.

I'm using a 2.6.11 Kernel and gcc 3.3.5 as compiler.

Share this post


Link to post
Share on other sites
Arty    122
When I compile the linked file I still have the same 5 sec delay. It's as if the program checks only every 5 seconds for any content in the key buffer.

I have used the version labeled with "* DOWNLOAD Linux Code For This Lesson. ( Conversion by Richard Campbell )"

Thanks and regards
Arty

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this