registerDragged

open fun registerDragged(method: Any): RegularTrigger

Registers a new trigger that runs while a mouse button is being held down.

Passes through five arguments:

  • The mouse delta x position (relative to last frame)

  • The mouse delta y position (relative to last frame)

  • The mouse x position

  • The mouse y position

  • The mouse button

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard