LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: kappa on September 26, 2006, 01:36:53

Title: [RFE] Mouse in Window!
Post by: kappa on September 26, 2006, 01:36:53
just wondering if it would be a good idea to add a method in the lwjgl Mouse class that would let you know if a mouse is in a lwjgl window/canvas or has left it, something like

Mouse.isOnCanvas() <-- returns boolean

it would make working in windowed mode much easier/nicer, since you could check if mouse is still there and stop events from happening if it has left the window and you wouldn't need to grab it always, which is usually anonying in windowed mode, what do you ppl think?
Title: [RFE] Mouse in Window!
Post by: MarneusCalgarXP on September 26, 2006, 08:33:31
I haven't yet worked with mouse in LWJGL, but yes, I think it would be a good idea to have such a method, if it's not already present..