Sprite::setWhenMouseClicked()
Sets the handler for when the mouse is clicked. This allows you to define custom behavior when the mouse is clicked.
Syntax
Java
.setWhenMouseClicked(whenMouseClicked)
Parameters
| Name | Data Type | Description |
|---|---|---|
| whenMouseClicked | WhenMouseClickedHandler | A MouseClickedHandler that takes a Sprite and a |
Return
void
