Hi , I'm trying to get absolute mouseX,Y of screen based on user's desktop Resolution . because mouseX,Y are limited to processing's output Frame .
is there a way to get that absolute X,Y positions ?!
import java.awt.*;
void setup () {
}
void draw () {
PointerInfo a = MouseInfo.getPointerInfo();
Point b = a.getLocation();
int x = (int)b.getX();
int y = (int)b.getY();
println(x + " : " + y);
}
Answers
using the awt library it's possible:
hope this helps!
Fantastic @akiersky ! Just a slightly tweaked version of mine: :D