SpriteBoxEvent constructor

SpriteBoxEvent(
  1. Offset boxPosition,
  2. PointerEventType type,
  3. int pointer
)

Creates a new SpriteBoxEvent, typically this is done internally inside the SpriteBox.

var event = new SpriteBoxEvent(new Point(50.0, 50.0), 'pointerdown', 0);

Implementation

SpriteBoxEvent(this.boxPosition, this.type, this.pointer);