Mouse outside window

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):


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

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…