Little_Piggy
01-09-2001, 05:10 PM
Hi all,
I am writing a simple game, in which I use the GLUT 3.7 Keyboard and KeyboardUp callbacks with glutIgnoreKeyRepeat(1). The keys are used to move the little airplane around, so they are generally held down. Everything works fine if I only hold down one or two keys at once. If, however, I press and hold S, D and space bar (for example), the last keystroke is lost. By lost I mean it does not hit a breakpoint in the keydown callback, so this is something that GLUT is doing, not me. Some combinations of three and even four keys will work (e.g. S, D, O, K, but not O, K, '), however, which is puzzling.
I am wondering if anyone else has used the keydown and up callbacks and if they have the same difficulty. Documentation seems to be pretty slim, the man pages do not say anything about a keystroke limitation. I am running Win98.
Thanks.
I am writing a simple game, in which I use the GLUT 3.7 Keyboard and KeyboardUp callbacks with glutIgnoreKeyRepeat(1). The keys are used to move the little airplane around, so they are generally held down. Everything works fine if I only hold down one or two keys at once. If, however, I press and hold S, D and space bar (for example), the last keystroke is lost. By lost I mean it does not hit a breakpoint in the keydown callback, so this is something that GLUT is doing, not me. Some combinations of three and even four keys will work (e.g. S, D, O, K, but not O, K, '), however, which is puzzling.
I am wondering if anyone else has used the keydown and up callbacks and if they have the same difficulty. Documentation seems to be pretty slim, the man pages do not say anything about a keystroke limitation. I am running Win98.
Thanks.