I overflow the keyboard buffer and get the following exception when calling Keyboard.read():
java.lang.IllegalArgumentException
at java.nio.Buffer.limit(Buffer.java:249)
at org.lwjgl.input.Keyboard.read(Unknown Source)
at org.lwjgl.gui.GuiManager.handleKeyboard(GuiManager.java:182)
at org.lwjgl.gui.GuiManager.update(GuiManager.java:158)
at org.lwjgl.gui.Test.mainLoop(Test.java:183)
at org.lwjgl.gui.Test.start(Test.java:121)
at org.lwjgl.gui.Test.main(Test.java:192
I think Keyboard.read() should either handle this without causing the exception, or atleast throw the exception explicetly.
tom
