LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: TLH on January 23, 2014, 14:17:52

Title: [BUG] LWJGL does not register a key-down event if that key is 'already' down
Post by: TLH on January 23, 2014, 14:17:52
Specifically, if LWJGL 'thinks' that key is already down. This behaviour differs from AWT KeyListener, which allows keys to be pressed multiple times without release.

There's a couple of ways I've observed this:
In the latter case, an LWJGL key-down event is generated for one single keypress, and Keyboard.getEventCharacter does contain the simulated character.

Obviously the buck is not entirely with LWJGL, far from it, however it is still the case that the event stream derived from an AWT KeyListener does report multiple key-downs without key-ups. I have made several attempts to use that alongside LWJGL, including:
If I'm missing something, such as if LWJGL is functioning as intended but there does exist a way to do custom handling of input events, that works too :)
Title: Re: [BUG] LWJGL does not register a key-down event if that key is 'already' down
Post by: nczempin on March 21, 2014, 19:02:08
Perhaps Keyboard.enableRepeatEvents(true);?