registerClicked

open fun registerClicked(method: Any): RegularTrigger

Registers a new trigger that runs before a mouse button is being pressed or released.

Passes through four arguments:

  • The mouse x position

  • The mouse y position

  • The mouse button

  • The mouse button state (true if button is pressed, false otherwise)

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard