Hello Guest

[FIXED] Mouse input broken in 2.8.2 with Display.setParent() on Linux

  • 7 Replies
  • 6591 Views
On my 64bit Ubuntu, mouse input is broken in 2.8.2 when Display.setParent() is set. I have verified that the problem does not exist in 2.8.1.
« Last Edit: January 22, 2012, 18:07:33 by kappa »

*

Offline kappa

  • *****
  • 1314
Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #1 on: November 16, 2011, 10:24:21 »
care to elaborate a bit more? Mouse.getX() and Mouse.getY() not returning the correct value? and/or button clicks not working? or something else? Does it happen immediately on window creation or only after loosing focus and gaining it again?
« Last Edit: November 16, 2011, 10:37:52 by kappa »

Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #2 on: November 16, 2011, 11:48:45 »
After some further debugging I realized that the broken input was a symptom of a different change in behaviour and not an error in itself. As of 2.8.2, Display.isActive() seems to always return false when Display.setParent() is set. Whether or not this is intented behaviour or not is of course a matter of design but it is different from earlier releases. Mouse input in itself seems to work according to specification. Sorry for the confusion!

*

Offline princec

  • *****
  • 1931
    • Puppygames
Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #3 on: November 16, 2011, 12:57:30 »
Undocumented changes in behaviour are still bugs :)

Cas :)

*

Offline kappa

  • *****
  • 1314
Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #4 on: November 16, 2011, 13:34:51 »
ah, I see the issue now, will fix tonight.

Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #5 on: November 18, 2011, 16:23:25 »
Excellent! Thank you for the quick response!

*

Offline kappa

  • *****
  • 1314
Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #6 on: November 18, 2011, 16:26:01 »
Turns out that the issue was a little more complicated than initially expected. Will hopefully have another look on the weekend.

*

Offline kappa

  • *****
  • 1314
Re: [BUG] Mouse input broken in 2.8.2 with Display.setParent() on Linux
« Reply #7 on: January 22, 2012, 18:07:03 »
This should be fixed now and part of the next nightly build (after build #1522).