Screen.getMonitorAtPoint

Returns the monitor number in which the point (x,y) is located. Since 2.2

class Screen
int
getMonitorAtPoint
(
int x
,
int y
)

Parameters

x int

the x coordinate in the virtual screen.

y int

the y coordinate in the virtual screen.

Return Value

Type: int

the monitor number in which the point (x,y) lies, or a monitor close to (x,y) if the point is not in any monitor.

Meta