I have researched all that I could for this, there is not many stuff to see. I read somewhere that this is not possible but I feel like it is. Does anyone know?
Like when I do
void mousePressed() {
}
that only works when clicked inside the canvas. I want it to also work when clicked outside the canvas.