Can't re-grab mouse after ungrabbing it

Hi, I am rather new to jme and this is one of the only problems I am having:



I am making a jme-powered applet. When the escape key is pressed, the applet calls MouseInput.setCursorVisible(true), and the cursor is released. When I click the applet, it calls MouseInput.setCursorVisible(false). But the cursor does not disappear, and the cursor can still leave the applet.



Any help would be appreciated. Thanks!

This seems to be a linux-specific lwjgl problem because both windows and os x work fine

is it a problem here too: http://lwjgl.org/jnlp/lwjgl-demo.php/test.input.MouseTest ?

if not - then its probably a jme issue

it works fine as standalone or jnlp, only applets have this problem

h2oup said:

it works fine as standalone or jnlp, only applets have this problem
do try 2.2.1 - it has some fixed related to input

yes im using appletloader in lwjgl_util_applet 2.2.1

just to be certain - you need to use lwjgl.jar 2.2.1 - not just the applet loader

Yes, all of the lwjgl related files are from the same package and org.lwjgl.Sys does use version 2.2.1. I think this is an lwjgl related problem rather than a jme problem because it only has problems on linux.

In case you still have this problem, it has been fixed in lwjgl svn and will be included in the next release (2.2.2 or 2.3).



If you need it now you can use the nightly builds of lwjgl.