Hello Guest

[BUG?] 2.9.2 Mouse.isInsideWindow()

  • 7 Replies
  • 9610 Views
*

Offline basil

  • **
  • 81
[BUG?] 2.9.2 Mouse.isInsideWindow()
« 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 :

Code: [Select]
Mouse.destroy();
Mouse.create();

did not help.

stepping through WindowsDisplay.java, looks like method
Code: [Select]
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
Code: [Select]
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
Code: [Select]
/**
* Method to read the keyboard buffer
*/
void readMouse(ByteBuffer buffer);
javadoc is a bit off ;)

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #1 on: January 07, 2015, 18:23:35 »
Thanks, both issues will be fixed with the next nightly.

*

Offline basil

  • **
  • 81
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #2 on: January 07, 2015, 18:36:50 »
thanks! :)

*

Offline basil

  • **
  • 81
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #3 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.

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #4 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.
« Last Edit: January 14, 2015, 00:19:28 by spasi »

*

Offline basil

  • **
  • 81
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #5 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

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #6 on: January 14, 2015, 18:30:27 »
It does, I built it yesterday after the last commit.

*

Offline basil

  • **
  • 81
Re: [BUG?] 2.9.2 Mouse.isInsideWindow()
« Reply #7 on: January 14, 2015, 18:48:13 »
ahh got it. thanks alot! :)

.. had to motivate my local maven repo.