Keyboard not responding since update to 1.0 beta3

Started by Nop, September 11, 2006, 11:22:07

Previous topic - Next topic

Nop

I think you are right on the mark. I use getEventCharacter() to get the typed key after having handled the F- and cursor keys. The following is the code that takes the typed key and adds it to the editor (which does not work with the bug).

Quotedefault:
                   char c = Keyboard.getEventCharacter();
                   if( c >= 32 )
                   {
                       Gui.getEditor().addChar( c );
                   }

elias

Great! Then there's a good chance you'll find beta4 working on win98 SE. You can either wait for the release (should be very soon, probably this weekend), or if you like to test it, compile either directly from SVN or use these prebuilt binaries:

http://download.oddlabs.com/elias/lwjgl-17112006.zip

- elias

Nop

I have tried the pre-build files. Unfortunately this always gives me the following exception:
java.lang.IllegalStateException: Destroy the Keyboard first.
	at org.lwjgl.input.Keyboard.create(Keyboard.java:293)
	at org.lwjgl.input.Keyboard.create(Keyboard.java:312)


(I used the old lwgjl_util.jar, as there wasn't a pre-built one.)

elias

Try this newer lwjgl.jar with that bug fixed (you can keep the natives):

http://download.oddlabs.com/elias/lwjgl.jar

- elias

Nop