When click and drag mouse outside window and release button outside window, isButtonDown still returns true.
This happens only in this case (what I need):
((LWJGLMouseInput)MouseInput.get()).setCursorVisible(true);
Any solution?
Is it possible use AWT Mouse in LWJGL mode?
Is it possible get coordinates when cursor is outside windows?
Thank you.
yes, provided you are using a new version of lwjgl, have a look at the hidden lwjgl switches
http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/doc/lwjgl_hidden_switches.text?revision=3241&view=markup
in particular org.lwjgl.input.Mouse.allowNegativeMouseCoords
just add that as a jvm parameter -Dorg.lwjgl.input.Mouse.allowNegativeMouseCoords=true
Thank you for help! With last lwjgl version isButtonDown function works properly…