Hello, it's been a while since I've posted. Anyhow,
I've run into a strange bug somewhere in Jagatoo. Making a right click on my laptop's touchpad mouse buttons causes an exception, if the mouse is registered with the inputsystem. Specifically, the crash only happens when I release the mouse button. My 'onMouseButtonPressed' listener's code runs, but my 'onMouseButtonReleased' code never does.
It gets stranger: while I have a USB mouse plugged in, its right click does not cause the crash... and neither do the right click buttons on the keyboard anymore. But only for that instance of the program, if I unplug the mouse, and restart the program, the exception returns.
I checked out the xith3d and xith-tk trunks, and the problem is still here. My machine is a thinkpad R51, the built in mousepad has two right and two left mouse buttons, and a single centre button. Not sure if that unusual setup matters to this.
Thanks for any help,
java.lang.ArrayIndexOutOfBoundsException: 2
at org.jagatoo.input.devices.Mouse.prepareMouseButtonReleasedEvent(Mouse.java:457)
at org.jagatoo.input.impl.lwjgl.LWJGLMouse.collectOrFireEvents(LWJGLMouse.java:203)
at org.jagatoo.input.impl.lwjgl.LWJGLMouse.updateMouse(LWJGLMouse.java:277)
at org.jagatoo.input.devices.Mouse.update(Mouse.java:773)
at org.jagatoo.input.InputSystem.updateMouses(InputSystem.java:1135)
at org.jagatoo.input.InputSystem.update(InputSystem.java:1178)
at org.xith3d.base.Xith3DEnvironment.updateInputSystem(Xith3DEnvironment.java:210)
at org.xith3d.loop.RenderLoop.prepareNextFrame(RenderLoop.java:593)
at org.xith3d.loop.RenderLoop.loopIteration(RenderLoop.java:638)
at org.xith3d.loop.RenderLoop.update(RenderLoop.java:698)
at org.xith3d.loop.UpdatingThread.nextIteration(UpdatingThread.java:473)
at org.xith3d.loop.RenderLoop.nextIteration(RenderLoop.java:709)
at org.xith3d.loop.RenderLoop.loop(RenderLoop.java:762)
at org.xith3d.loop.UpdatingThread.run(UpdatingThread.java:526)
at org.xith3d.loop.RenderLoop.run(RenderLoop.java:785)
at org.xith3d.loop.RenderLoop.begin(RenderLoop.java:841)
at org.xith3d.loop.RenderLoop.begin(RenderLoop.java:871)