Delay when pressing keys
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
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.
Very weird indeed.
I'm using a 2.6.11 Kernel and gcc 3.3.5 as compiler.
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
I have used the version labeled with "* DOWNLOAD Linux Code For This Lesson. ( Conversion by Richard Campbell )"
Thanks and regards
Arty
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement