LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: renanse on July 19, 2008, 15:59:08

Title: SWT and lwjgl input?
Post by: renanse on July 19, 2008, 15:59:08

I have updated jME's core with the ability to create SWT canvases.  The is using SWT's builtin opengl canvas (which uses lwjgl).  My problem is in the input part of things.  Specifically the key listeners that are part of SWT will not receive keyReleased events for certain keys if you have multiple keys pressed.  (you only get the first release key in those circumstances.)  Because of that, if you are doing navigation (say using WASD) you either have sticky keys (you don't know that a user stopped pressing a key and the action keeps repeating) or when you hear a key release you have to force all keys to be "released" which results in sudden stops.

According to the SWT bug tracker (https://bugs.eclipse.org/bugs/show_bug.cgi?id=50020), this is a known and unsolvable problem (which I find laughable because AWT and JInput handle it fine.)  So my question is... have any of you hit this problem?  Perhaps I can use JInput instead?