# Multiple Cursors

**URL:** https://discourse.processing.org/t/multiple-cursors/19481
**Category:** Coding Questions
**Created:** [April 6, 2020, 9:47pm UTC](https://discourse.processing.org/t/multiple-cursors/19481 "2020-04-06T21:47:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JGSalgueiro](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JGSalgueiro](https://discourse.processing.org/u/JGSalgueiro)
#### Post date: [April 6, 2020, 9:47pm UTC](https://discourse.processing.org/t/multiple-cursors/19481/1 "2020-04-06T21:47:56Z")

</div>

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](https://dl.acm.org/doi/10.1145/1866029.1866056)

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [April 18, 2020, 10:00pm UTC](https://discourse.processing.org/t/multiple-cursors/19481/2 "2020-04-18T22:00:37Z")

</div>

> [@JGSalgueiro](#):
>
> Is it possible to have multiple cursors all comanded by your mouse input?

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:

```auto
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.

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