LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: basil on January 07, 2015, 17:58:23

Title: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: basil on January 07, 2015, 17:58:23
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 true

running 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 ;)
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: spasi on January 07, 2015, 18:23:35
Thanks, both issues will be fixed with the next nightly.
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: basil on January 07, 2015, 18:36:50
thanks! :)
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: basil on January 08, 2015, 15:37:14
just wondering .. is the 2.9.3 nightly build running (somewhere) ? http://ci.newdawnsoftware.com/job/LWJGL-git-dist/ ran 30.12 last year the last time.
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: spasi on January 13, 2015, 23:41:58
Indeed, nightly builds have stopped working again. Will let you know once a new build is up.

edit: you can try this jar (http://build.lwjgl.org.s3.amazonaws.com/nightly/lwjgl2/lwjgl.jar).
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: basil on January 14, 2015, 18:23:53
that one works but it looks like it does not contain this year commits.

https://github.com/LWJGL/lwjgl/commits/master
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: spasi on January 14, 2015, 18:30:27
It does, I built it yesterday after the last commit.
Title: Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
Post by: basil on January 14, 2015, 18:48:13
ahh got it. thanks alot! :)

.. had to motivate my local maven repo.