DelegateInputHandler constructor

DelegateInputHandler({
  1. required ThermionViewer viewer,
  2. required InputHandlerDelegate? transformDelegate,
  3. PickDelegate? pickDelegate,
  4. Map<InputType, InputAction>? actions,
})

Implementation

DelegateInputHandler({
  required this.viewer,
  required this.transformDelegate,
  this.pickDelegate,
  Map<InputType, InputAction>? actions,
}) {
  if (actions != null) {
    _actions = actions;
  }

  for (var gestureType in InputType.values) {
    _inputDeltas[gestureType] = Vector3.zero();
  }

  viewer.registerRequestFrameHook(process);
}