LWJGL Forum

Programming => OpenGL => Topic started by: Qudus on February 07, 2008, 20:54:45

Title: Query mouse over Display
Post by: Qudus on February 07, 2008, 20:54:45
hi

Is there a way to detect, if the Mouse cursor is currently over the Display? I am writing a JInput implementation for my input abstraction and want to distribute mouse events only if the Mouse is over the Display.

I could simply calculate the current screen-absolute mouse position in relation to the Display's location. But I see no way to read the Display's decoration dimensions. Is there a way to get that?

Marvin