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