Ejemplo n.º 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.");
		}