Stage::setCursor()
Shows an image instead of the mouse pointer while the mouse is over the stage.
Examples
Syntax
Java
.setCursor(path)
.setCursor(path, x, y)
Parameters
| Name | Data Type | Description |
|---|---|---|
| path | String | an image file, or a built-in sprite's name |
| x | int | pixels from the image's left edge to the point that clicks |
| y | int | pixels from the image's top edge to the point that clicks |
Return
void