isMouseEnabled
When set to false
onMouseClicked will NOT be called. In some cases, you may want to keep this value true
, even when the behaviour is inactive. For example, an inactive button may keep isMouseEnabled == true
, and inside onMouseClicked play a sound to indicate the click did nothing. In such cases, the return value from onMouseClicked should be true
, as the event has been handled.