Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DragListener

Every Screen interested in drag events must implement this interface. Drag event listener must be activated in Engine.

engine.enableMouseDrag();

Hierarchy

  • DragListener

Index

Methods

Methods

onDrag

  • Called when a user drags

    Parameters

    • engine: Engine

      A reference to the active engine

    • move: Vector

      Movement registered since last method call

    Returns void

onDrop

  • onDrop(engine: Engine): void
  • Called when a user ends drag

    Parameters

    • engine: Engine

      A reference to the active engine

    Returns void

Generated using TypeDoc