Sprite::whenMouseClicked()
Called when a mouse button is pressed anywhere on the stage.
Examples
Syntax
Java
.whenMouseClicked(button)
Parameters
| Name | Data Type | Description |
|---|---|---|
| button | MouseCode | the button |
Return
void
Called when a mouse button is pressed anywhere on the stage.
.whenMouseClicked(button)
| Name | Data Type | Description |
|---|---|---|
| button | MouseCode | the button |
void