DelegateInputHandler constructor
DelegateInputHandler({
- required ThermionViewer viewer,
- required InputHandlerDelegate? transformDelegate,
- PickDelegate? pickDelegate,
- 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);
}