GazePointer constructor
GazePointer({
- required CameraRig cameraRig,
- double dwellDuration = 2.0,
- double minDwellDuration = 0.6,
- double dwellAcceleration = 0.8,
- bool adaptiveDwell = true,
- double gazeGracePeriod = 0.15,
- bool enableHaptics = true,
- void onDwellSelect(
- String nodeId
- void onTap(
- String nodeId
- void onGazeEnter(
- String nodeId
- void onGazeExit(
- String nodeId
- void onDwellProgress()?,
Implementation
GazePointer({
required this.cameraRig,
this.dwellDuration = 2.0,
this.minDwellDuration = 0.6,
this.dwellAcceleration = 0.8,
this.adaptiveDwell = true,
this.gazeGracePeriod = 0.15,
this.enableHaptics = true,
this.onDwellSelect,
this.onTap,
this.onGazeEnter,
this.onGazeExit,
this.onDwellProgress,
}) : _effectiveDwell = dwellDuration;