Multiple Cursors

Hi guys! Its my first post here and i hope it wont be my last.

I ve been coding for a couple years but im still new to java and Processing. My question is:
Is it possible to have multiple cursors all comanded by your mouse input? Like in this example : https://dl.acm.org/doi/10.1145/1866029.1866056

No, in the sense that the cursor commands only decorate the single system mouse pointer –

Yes, in the sense that you can draw anything, and anything you draw can be positioned with the mouseX, mouseY variables.

Here is a very simple cursor:

void drawCursor(float x, float y) {
  pushMatrix();
  translate(x, y);
  pushStyle();
  stroke(255);
  fill(0);
  triangle(0,0,10,10,0,12);
  popStyle();
  popMatrix();
}

And now I draw a couple of them near my mouse.

void draw() {
  background(128);
  drawCursor(mouseX + 20, mouseY);
  drawCursor(mouseX - 30, mouseY - 30);
}