Keyboard problem

Started by meix, August 17, 2003, 09:41:23

Previous topic - Next topic

meix

Greetings,
currently I'm writing some Pacman-like 2D game with lwjgl, giving me a problem with keyboard / the Keyboard class(?).

Since I'm controlling the pacman with the array-keys I got lots of keyboard inputs.

The program itself works fine, however after two minutes or so Windows gives me its nagging beep with each key stroke, which it always plays when it want's to tell you that its keyboard buffer is full - while the program continues to work ok, except for the beeps.

Tried a lot of things - enabling / not enabling keyboard buffer, Keyboard.read(), destroying and recreating Keyboard... with no effect.

What am I doing wrong??
Please help.

Thanks a lot

meix

princec

I think you might be missing a Window.tick() in your main loop to process unhandled O/S messages.

Cas :)

meix

Hallo Cas,

thanks for your response, which solved the problem.
I seem to recall I foolishly threw out the call to gl.tick() somewhere last week... :oops:

Best regards

meix