Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Archive
Resolved Bugs/RFE
[FIXED] Windows: pressing ESCAPE releases mouse capture (and mouse button)
« previous
next »
Print
Pages: [
1
]
[FIXED] Windows: pressing ESCAPE releases mouse capture (and mouse button)
2 Replies
9913 Views
Matthias
182
[FIXED] Windows: pressing ESCAPE releases mouse capture (and mouse button)
«
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 "
: true" to "
: false" before the demo closes.
Logged
TWL - Themable Widget Library
kappa
1319
Re: [BUG] Windows: pressing ESCAPE releases mouse capture (and mouse button)
«
Reply #1 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.
Logged
kappa
1319
Re: [BUG] Windows: pressing ESCAPE releases mouse capture (and mouse button)
«
Reply #2 on:
November 26, 2010, 20:39:30 »
Its pretty clear that, that piece of code shouldn't be there.
Fixed.
Logged
Print
Pages: [
1
]
« previous
next »