Esempio n. 1
0
        public Configuration()
        {
            ConfigVersion = 1;

            // Screen Map
            ScreenArea = new Area(0, 0, 0, 0);

            // Tablet area
            TabletArea       = new Area(80, 45, 40, 22.5);
            TabletFullArea   = new Area(100, 50, 50, 25);
            ForceFullArea    = true;
            OutputMode       = 0;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap      = new int[] { 1, 2, 3 };
            DisableButtons = false;

            FilterEnabled = false;
            FilterValue   = 0;

            CommandsAfter  = new string[] { "" };
            CommandsBefore = new string[] { "" };

            WindowWidth     = 850;
            WindowHeight    = 650;
            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";
            DeveloperMode   = false;
        }
Esempio n. 2
0
        public Noise(Noise noise)
        {
            Seed = noise.Seed;

            Width  = noise.Width;
            Height = noise.Height;
            Depth  = noise.Depth;

            Frequency = noise.Frequency;

            Octaves    = noise.Octaves;
            Lacunarity = noise.Lacunarity;
            Gain       = noise.Gain;

            PerturbanceAmplitude = noise.PerturbanceAmplitude;
            PerturbanceFrequency = noise.PerturbanceFrequency;

            OutputStatus      = noise.OutputStatus;
            InterpolationMode = noise.InterpolationMode;
            FractalMode       = noise.FractalMode;

            Jitter = noise.Jitter;

            IsFractal   = noise.IsFractal;
            IsPerturbed = noise.IsPerturbed;

            Index0 = noise.Index0;
            Index1 = noise.Index1;
        }
Esempio n. 3
0
        public Configuration()
        {
            ConfigVersion = 1;

            // Screen Map
            ScreenArea = new Area(0, 0, 0, 0);

            // Tablet area
            TabletArea       = new Area(80, 45, 40, 22.5);
            TabletFullArea   = new Area(100, 50, 50, 25);
            ForceFullArea    = true;
            OutputMode       = 0;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap      = new string[] { "MOUSE1", "MOUSE2", "MOUSE3" };
            DisableButtons = false;

            TabletButtonMap = new string[16];
            for (int i = 0; i < 16; i++)
            {
                TabletButtonMap[i] = "";
            }
            DisableTabletButtons = false;

            PressureSensitivity = 0;
            ScrollSensitivity   = 0.5;
            ScrollAcceleration  = 1.0;
            ScrollStopCursor    = false;

            SmoothingEnabled         = false;
            SmoothingLatency         = 0;
            SmoothingInterval        = 4;
            SmoothingOnlyWhenButtons = false;

            NoiseFilterEnabled   = false;
            NoiseFilterBuffer    = 10;
            NoiseFilterThreshold = 0.5;

            AntiSmoothingEnabled      = false;
            AntiSmoothingShape        = 0.5;
            AntiSmoothingCompensation = 20.0;

            CustomCommands = new string[] { "" };

            WindowWidth  = 700;
            WindowHeight = 710;

            AutomaticRestart = true;
            RunAtStartup     = false;

            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";

            DebuggingEnabled = false;
            DeveloperMode    = false;
        }
Esempio n. 4
0
        public Bitmap GetValue()
        {
            OutputStatus = OutputModes.Value;

            if (IsFractal)
            {
                return(GetValueFractal());
            }
            else
            {
                return(GetValueNormal());
            }
        }
Esempio n. 5
0
        public Bitmap GetSimplex()
        {
            OutputStatus = OutputModes.Simplex;

            if (IsFractal)
            {
                return(GetSimplexFractal());
            }
            else
            {
                return(GetSimplexNormal());
            }
        }
Esempio n. 6
0
        public Bitmap GetPerlin()
        {
            OutputStatus = OutputModes.Perlin;

            if (IsFractal)
            {
                return(GetPerlinFractal());
            }
            else
            {
                return(GetPerlinNormal());
            }
        }
Esempio n. 7
0
        public Bitmap GetCubic()
        {
            OutputStatus = OutputModes.Cubic;

            if (IsFractal)
            {
                return(GetCubicFractal());
            }
            else
            {
                return(GetCubicNormal());
            }
        }
Esempio n. 8
0
        public Configuration()
        {
            ConfigVersion = 1;

            // Screen Map
            ScreenArea = new Area(0, 0, 0, 0);

            // Tablet area
            TabletArea       = new Area(80, 45, 40, 22.5);
            TabletFullArea   = new Area(100, 50, 50, 25);
            ForceFullArea    = true;
            OutputMode       = 0;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap       = new int[] { 1, 2, 3 };
            DisableButtons  = false;
            mouseWheelSpeed = 50;

            SmoothingEnabled  = false;
            SmoothingLatency  = 0;
            SmoothingInterval = 4;

            AntichatterEnabled    = true;
            AntichatterStrength   = 3.0;
            AntichatterMultiplier = 1.0;
            AntichatterOffsetX    = 0.0;
            AntichatterOffsetY    = 1.0;

            PredictionEnabled   = true;
            PredictionSharpness = 1.0;
            PredictionStrength  = 1.1;
            PredictionOffsetX   = 3.0;
            PredictionOffsetY   = 0.3;

            CommandsAfter  = new string[] { "" };
            CommandsBefore = new string[] { "" };

            WindowWidth  = 800;
            WindowHeight = 710;

            RunAtStartup = false;

            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";

            DeveloperMode = false;
        }
Esempio n. 9
0
        public Configuration()
        {
            ConfigVersion = 1;

            // Screen Map
            ScreenArea = new Area(0, 0, 0, 0);

            // Tablet area
            TabletArea       = new Area(80, 45, 40, 22.5);
            TabletFullArea   = new Area(100, 50, 50, 25);
            ForceFullArea    = true;
            OutputMode       = 0;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap      = new int[] { 1, 2, 3 };
            DisableButtons = false;

            SmoothingEnabled  = false;
            SmoothingLatency  = 0;
            SmoothingInterval = 4;

            NoiseFilterEnabled   = false;
            NoiseFilterBuffer    = 10;
            NoiseFilterThreshold = 0.5;

            AntiSmoothingEnabled      = false;
            AntiSmoothingShape        = 0.5;
            AntiSmoothingCompensation = 4.0;

            CommandsAfter  = new string[] { "" };
            CommandsBefore = new string[] { "" };

            WindowWidth  = 700;
            WindowHeight = 710;

            AutomaticRestart = true;
            RunAtStartup     = false;

            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";

            DebuggingEnabled = false;
            DeveloperMode    = false;
        }
Esempio n. 10
0
        public Bitmap GetCellular()
        {
            OutputStatus = OutputModes.Cellular;

            Bitmap bitmap = GetCellularBitmap();

            fastNoise.SetNoiseType(FastNoiseBase.NoiseType.Cellular);

            for (int i = 0; i < Height; i++)
            {
                for (int j = 0; j < Width; j++)
                {
                    double Value = fastNoise.GetCellular(j, i, Depth);
                    Values.Add(Value);
                }
            }

            return(GetBitmap(bitmap));
        }
Esempio n. 11
0
        public Configuration()
        {
            ConfigVersion = 1;

            // Screen Map
            ScreenArea = new Area(0, 0, 0, 0);

            // Tablet area
            TabletArea       = new Area(80, 45, 40, 22.5);
            TabletFullArea   = new Area(100, 50, 50, 25);
            ForceFullArea    = true;
            OutputMode       = 0;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap      = new int[] { 1, 2, 3 };
            DisableButtons = false;

            SmoothingEnabled  = false;
            SmoothingLatency  = 0;
            SmoothingInterval = 4;

            PredictEnabled   = false;
            PredictLength    = 0;
            PredictInterval  = 2;
            PredictAlgorithm = PredictAlgorithms.Linear;

            CommandsAfter  = new string[] { "" };
            CommandsBefore = new string[] { "" };

            WindowWidth  = 800;
            WindowHeight = 710;

            RunAtStartup = false;

            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";
            DeveloperMode   = false;
        }
Esempio n. 12
0
        public Configuration()
        {
            ConfigVersion = 2;

            // Screen Map
            ScreenArea  = null;
            ScreenAreas = new Area[3];
            for (int i = 0; i < ScreenAreas.Length; i++)
            {
                ScreenAreas[i] = new Area(0, 0, 0, 0)
                {
                    IsEnabled = false
                };
            }
            ScreenAreas[0].IsEnabled = true;
            ScreenAreas[1]           = new Area(1000, 500, 500, 250);

            // Tablet area
            TabletArea  = null;
            TabletAreas = new Area[ScreenAreas.Length];
            for (int i = 0; i < GetAreaCount(); i++)
            {
                TabletAreas[i] = new Area(100, 56, 50, 28);
            }
            TabletFullArea   = new Area(100, 50, 50, 25);
            Mode             = OutputModes.Standard;
            ForceAspectRatio = true;
            Rotation         = 0;

            DesktopSize          = new Area(0, 0, 0, 0);
            AutomaticDesktopSize = true;

            ButtonMap      = new string[] { "MOUSE1", "MOUSE2", "MOUSE3" };
            DisableButtons = false;

            TabletButtonMap = new string[16];
            for (int i = 0; i < 16; i++)
            {
                TabletButtonMap[i] = "";
            }
            DisableTabletButtons = false;

            PressureSensitivity = 0;
            ScrollSensitivity   = 0.5;
            ScrollAcceleration  = 1.0;
            ScrollStopCursor    = false;

            SmoothingEnabled         = false;
            SmoothingLatency         = 0;
            SmoothingInterval        = 4;
            SmoothingOnlyWhenButtons = false;

            NoiseFilterEnabled   = false;
            NoiseFilterBuffer    = 10;
            NoiseFilterThreshold = 0.5;

            OsuEnabled = false;

            AntiSmoothingEnabled  = false;
            AntiSmoothingSettings = new AntiSmoothingSetting[5];
            for (int i = 0; i < AntiSmoothingSettings.Length; i++)
            {
                AntiSmoothingSettings[i] = new AntiSmoothingSetting();
            }
            AntiSmoothingDragMultiplier = 1.0;
            AntiSmoothingOnlyWhenHover  = false;

            RandomNoiseFilterEnabled = false;
            RandomNoiseFilterMX      = -1.0;
            RandomNoiseFilterPX      = 1.0;
            RandomNoiseFilterMY      = -1.0;
            RandomNoiseFilterPY      = 1.0;

            CustomCommands = new string[] { "" };

            WindowWidth  = 700;
            WindowHeight = 700;

            TabletView = new TabletViewSettings();

            AutomaticRestart = true;
            RunAtStartup     = false;

            DriverPath      = "bin/TabletDriverService.exe";
            DriverArguments = "config/init.cfg";

            DebuggingEnabled = false;
            DeveloperMode    = false;
        }
Esempio n. 13
0
        public Bitmap GetWhiteNoise()
        {
            OutputStatus = OutputModes.White;

            return(GetWhiteNoiseNormal());
        }