/// <summary>
 /// Initializes a new instance of the <see cref="EyeXHost"/> class.
 /// </summary>
 public EyeXHost()
 {
     _screenBoundsStateAccessor            = new EngineStateAccessor <Rect>(StatePaths.ScreenBounds);
     _displaySizeStateAccessor             = new EngineStateAccessor <Size2>(StatePaths.DisplaySize);
     _eyeTrackingDeviceStatusStateAccessor = new EngineStateAccessor <EyeTrackingDeviceStatus>(StatePaths.EyeTrackingState);
     _userPresenceStateAccessor            = new EngineStateAccessor <UserPresence>(StatePaths.UserPresence);
     _userProfileNameStateAccessor         = new EngineStateAccessor <string>(StatePaths.ProfileName);
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EyeXHost"/> class.
        /// </summary>
        public EyeXHost()
        {
            _screenBoundsStateAccessor            = new EngineStateAccessor <Rect>(StatePaths.EyeTrackingScreenBounds);
            _displaySizeStateAccessor             = new EngineStateAccessor <Size2>(StatePaths.EyeTrackingDisplaySize);
            _eyeTrackingDeviceStatusStateAccessor = new EngineStateAccessor <EyeTrackingDeviceStatus>(StatePaths.EyeTrackingState);
            _userPresenceStateAccessor            = new EngineStateAccessor <UserPresence>(StatePaths.UserPresence);
            _userProfileNameStateAccessor         = new EngineStateAccessor <string>(StatePaths.ProfileName);
            _userProfilesStateAccessor            = new EnumerableStateAccessor <string>(StatePaths.EyeTrackingProfiles);
            _gazeTracking = new EngineStateAccessor <GazeTracking>(StatePaths.GazeTracking);

            _connected = new ManualResetEvent(false);
        }