예제 #1
0
        public StateMachine(TouchConfiguration touchConfiguration)
        {
	        _touchConfiguration = touchConfiguration;
	        _timer = new Timer {Interval = _touchConfiguration.Section.MinClickTimeout, Enabled = false, AutoReset = false};
            _timer.Elapsed += (sender, args) => Process(MouseEventFlags.Absolute);
            Idle();
        }
예제 #2
0
		public TouchZoneProvider(StateMachine stateMachine, TouchConfiguration touchConfiguration)
		{
			_touchZones = new List<TouchZone.TouchZone>
			{
				new LeftTouchZone(stateMachine, touchConfiguration),
				new RightTouchZone(stateMachine, touchConfiguration)
			};
		}
예제 #3
0
 public TouchZoneProvider(StateMachine stateMachine, TouchConfiguration touchConfiguration)
 {
     _touchZones = new List <TouchZone.TouchZone>
     {
         new LeftTouchZone(stateMachine, touchConfiguration),
         new RightTouchZone(stateMachine, touchConfiguration)
     };
 }
		public SingleInstanceManager()
		{
			IsSingleInstance = true;

			_touchConfiguration = new TouchConfiguration();
			var stateMachine = new StateMachine(_touchConfiguration);
			_touchZoneProvider = new TouchZoneProvider(stateMachine, _touchConfiguration);
			_touchMouseEventManager = new TouchMouseEventManager(stateMachine, _touchZoneProvider);
		}
예제 #5
0
 public StateMachine(TouchConfiguration touchConfiguration)
 {
     _touchConfiguration = touchConfiguration;
     _timer = new Timer {
         Interval = _touchConfiguration.Section.MinClickTimeout, Enabled = false, AutoReset = false
     };
     _timer.Elapsed += (sender, args) => Process(MouseEventFlags.Absolute);
     Idle();
 }
        public SingleInstanceManager()
        {
            IsSingleInstance = true;

            _touchConfiguration = new TouchConfiguration();
            var stateMachine = new StateMachine(_touchConfiguration);

            _touchZoneProvider      = new TouchZoneProvider(stateMachine, _touchConfiguration);
            _touchMouseEventManager = new TouchMouseEventManager(stateMachine, _touchZoneProvider);
        }