Sprite::isMouseDown() Examples Syntax Java Scratch Return Sprite::isMouseDown() Returns true if the left mouse button is down. Examples import org.openpatch.scratch.*; public class SpriteIsMouseDown { public SpriteIsMouseDown() { Stage myStage = new Stage(600, 240); Sprite mySprite = new Sprite("zeta", "assets/zeta_green_badge.png"); mySprite.changeX(-80); mySprite.changeY(30); myStage.add(mySprite); while (myStage.getTimer().forMillis(3000)) { mySprite.say("Mouse down? " + mySprite.isMouseDown()); } myStage.exit(); } public static void main(String[] args) { new SpriteIsMouseDown(); } } View on GitHub Syntax Java .isMouseDown() Scratch mouse down? Return boolean isMouseDown()