In JEmu2, the keyboard input sometimes behaves very weird; it seems as if keyboard events get lost, delayed or both. However, this only happens sometimes on my laptop, but never on my desktop PC. On my laptop, I can simply restart the emulator to make the problem go away.
I use LWJGL 0.98 and I simply do
if (Keyboard.isKeyDown(keyCode)) { ... }
every frame for each key (setting flags etc, for keeping track of key states).
I also tried adding
while (Keyboard.next()) { ... }
around the Keyboard handling code, but this didn’t make a difference.
I never had this problem before (Cosmic Trip (which uses an old version of lwjgl) doesn’t have this problem, and old versions of JEmu2 (using older versions of lwjgl) don’t seem to have this problem as well).
Is there any gotcha in doing keyboard handling in recent versions of LWJGL I need to be aware about? Anyone recognizes this problem?
Thanks,
Erik

It sounds like you’ve really only got a problem with your particular laptop/driver combo.