public static void ValueSetFromLocalSettings()

in Tools/EyeControlToolkitSettings/GazeSettings.cs [365:394]


        public static void ValueSetFromLocalSettings(ValueSet output)
        {
            foreach (var key in ApplicationData.Current.LocalSettings.Values.Keys)
            {
                switch(key)
                {
                    case "GazePointer.FixationDelay":
                    case "GazePointer.DwellDelay":
                    case "GazePointer.DwellRepeatDelay":
                    case "GazePointer.RepeatDelay":
                    case "GazePointer.ThresholdDelay":
                    case "GazePointer.GazeIdleTime":
                    case "GazeCursor.CursorRadius":
                        output[key] = (int)ApplicationData.Current.LocalSettings.Values[key];
                        break;
                    case "GazePointer.IsSwitchEnabled":
                    case "GazeCursor.CursorVisibility":
                        output[key] = (bool)ApplicationData.Current.LocalSettings.Values[key];
                        break;
                    case "OneEuroFilter.Beta":
                    case "OneEuroFilter.Cutoff":
                    case "OneEuroFilter.VelocityCutoff":
                        output[key] = (float)ApplicationData.Current.LocalSettings.Values[key];
                        break;
                    default:
                        output["ERROR"] = $"Error: Uknown key {key} {ApplicationData.Current.LocalSettings.Values[key]}";
                        break;
                }
            }
        }