Java getting mouse location on multiple monitor environment
Basically, what I did was take the PointerInfo and subtract the GraphicsDevice bounds from it, if the result was less the 0 (because the screen was left of the main screen), I multiplied the result by -1 The heart of the solution looks like this… // Pointer info PointerInfo pi = MouseInfo.getPointerInfo(); Point mp = … Read more