Scratch for Java

Stage::getMouse()

Returns the current position of the mouse cursor as a Vector2

Syntax

Java

.getMouse()

Return

Vector2

getMouse()