Skip to content

mouseClicked() doesn't fire when you use P2D or P3D renderer and call cursor in draw() #4687

@inkwellsiesta

Description

@inkwellsiesta

When you run this sketch...

void setup() {
  size(100, 100, P2D);
}

void draw() {
  cursor(ARROW);
}

void mouseClicked() {
  println("Mouse clicked!");
}

...and click inside the window, nothing gets printed to the console. It will print the message if you comment out either cursor(ARROW) or size(100, 100, P2D) (or just use the default renderer).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions