Hello Guest

[FIXED] Windows: pressing ESCAPE releases mouse capture (and mouse button)

  • 2 Replies
  • 4215 Views
The code in WindowsDisplay.handleKeyButton      (line 751 - 754):
         if(captureMouse != -1 && keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
            nReleaseCapture();
            captureMouse = -1;
         }

causes a mouse up event even if the mouse button was lot released. This can also be seen in the MouseTest demo: the title bar of the app changes from "
  • : true" to "
  • : false" before the demo closes.

*

Offline kappa

  • *****
  • 1314
Odd, can't see why that code would need to be in there. If I was to guess I'd say that its debug code accidently left in there and can safely be removed. Unless ofcourse someone has an explanation why it needs to be in there.

*

Offline kappa

  • *****
  • 1314
Its pretty clear that, that piece of code shouldn't be there.

Fixed.