LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: Matthias on November 26, 2010, 00:30:52

Title: [FIXED] Windows: pressing ESCAPE releases mouse capture (and mouse button)
Post by: Matthias on November 26, 2010, 00:30:52
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 "
Title: Re: [BUG] Windows: pressing ESCAPE releases mouse capture (and mouse button)
Post by: kappa on November 26, 2010, 09:31:45
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.
Title: Re: [BUG] Windows: pressing ESCAPE releases mouse capture (and mouse button)
Post by: kappa on November 26, 2010, 20:39:30
Its pretty clear that, that piece of code shouldn't be there.

Fixed.