Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
		public TouchZoneProvider(StateMachine stateMachine, TouchConfiguration touchConfiguration)
		{
			_touchZones = new List<TouchZone.TouchZone>
			{
				new LeftTouchZone(stateMachine, touchConfiguration),
				new RightTouchZone(stateMachine, touchConfiguration)
			};
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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);
        }