activate method

void activate()

Adds the event listeners of the controls.

Implementation

void activate() {
  _domElement.addEventListener(PeripheralType.pointermove, onPointerMove);
  _domElement.addEventListener(PeripheralType.pointerdown, onPointerDown);
  _domElement.addEventListener(PeripheralType.pointerup, onPointerCancel);
  _domElement.addEventListener(PeripheralType.pointerleave, onPointerCancel);
}