Overflowing keyboard buffer causes Exception

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

hehe - that looks a bug alright - will investigate tonight…

Yep, I’ve started getting that too of late. Not sure why it should suddenly start happening…

Cas :slight_smile:

isn’t it obvious!

Earth is approaching a gravimetrically turbulent area of its Solar orbit.

The tripes are heavy, and flying hogfish course the skies in the North!

Cas :slight_smile: