示例#1
0
        static void Main()
        {
            MultitouchInput input;

            try
            {
                input = new MultitouchInput();
            }
            catch (Exception e)
            {
                DisplayError(e);
                Console.WriteLine("Press ENTER to exit.");
                Console.ReadLine();
                return;
            }
            try
            {
                input.Start();
            }
            catch (Exception e)
            {
                DisplayError(e);
            }
            Console.WriteLine("Multi-touch input service is running.");
            Console.WriteLine("Press ENTER to stop and exit.");
            Console.ReadLine();
            Console.WriteLine("Stopping service...");
            input.Stop();
            Console.WriteLine("Service stopped.");
        }
示例#2
0
        private static void Main(string[] args)
        {
            if (args.Length == 1)
            {
                string parameter = args[0];
                if (parameter.Equals("-standalone"))
                {
                    input = new MultitouchInput();
                    input.Start();
                }
            }

            driver = new MultitouchDriver();
            try
            {
                driver.Start();
                Console.WriteLine("Multitouch driver is running.");
                Console.WriteLine("Press ENTER to stop and exit.");

                Console.ReadLine();

                Console.WriteLine("Stopping service...");
                driver.Stop();
                Console.WriteLine("Service stopped.");
            }
            catch (Exception e)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine(e.Message);
                Console.ResetColor();
            }
        }
示例#3
0
        public Context()
        {
            input = new MultitouchInput();
            input.Start();

            driver = new MultitouchDriver();
            driver.Start();
        }
 protected override void ExitThreadCore()
 {
     if (input != null)
     {
         input.Stop();
         input = null;
     }
     base.ExitThreadCore();
 }
示例#5
0
        public void RestartService()
        {
            MultitouchInput multitouchInput = MultitouchInput.Instance;

            if (multitouchInput != null)
            {
                multitouchInput.Restart();
            }
        }
		public ConfigurationInterfaceService(MultitouchInput input)
		{
			this.input = input;
		}
 public MultitouchInputContext()
 {
     input = new MultitouchInput();
     input.Start();
 }
示例#8
0
 public ConfigurationInterfaceService(MultitouchInput input)
 {
     this.input = input;
 }