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

Started by Matthias, November 26, 2010, 00:30:52

Previous topic - Next topic

Matthias

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.

kappa

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.

kappa

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

Fixed.