queue method

  1. @override
Future<void> queue(
  1. InputAction action,
  2. Vector3? delta
)
override

Implementation

@override
Future<void> queue(InputAction action, Vector3? delta) async {
  if (delta == null) return;

  switch (action) {
    case InputAction.ROTATE:
      _queuedRotationDelta += Vector2(delta.x, delta.y);
      break;
    case InputAction.TRANSLATE:
      _queuedMoveDelta += delta;
      break;
    case InputAction.PICK:
      _queuedZoomDelta += delta.z;
      break;
    case InputAction.NONE:
      break;
    case InputAction.ZOOM:
      break;
  }
}