Query mouse over Display

Started by Qudus, February 07, 2008, 20:54:45

Previous topic - Next topic

Qudus

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