i know 3.x coming but still.
i'm re-doing input-handling to become more flexible and having a better time when switching to 3.x, essentially going over all 2.9.2 input methods.
not sure if it's a side-effect of something else but i run into this :
- start with display set to window-mode (canvas or not)
- Mouse.isInsideWindow(), works perfectly fine
- switch to fullscreen
- switch back to window mode
- Mouse.isInsideWindow()
always returns
truerunning windows-implementation.
after going to window-mode :
Mouse.destroy();
Mouse.create();
did not help.
stepping through WindowsDisplay.java, looks like method
doHandleMessage(long hwnd, int msg, long wParam, long lParam, long millis)
is not receiving the
WM_MOUSELEAVE msg-code. looks like it's coming from
native void nUpdate()
which means, it could be a bug in the c/jni WindowsDisplay code. msg-code WM_MOUSEMOVE is still coming in so mouseInside remains true forever.
PS:
InputImplementation.java:74
/**
* Method to read the keyboard buffer
*/
void readMouse(ByteBuffer buffer);
javadoc is a bit off