Hello Guest

Query mouse over Display

  • 0 Replies
  • 4868 Views
*

Offline Qudus

  • ***
  • 123
Query mouse over Display
« 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