public static ITouchProviderHandler getCurrentProviderHandler() { if (current == null) { current = createProviderHandler(Settings.Default.output); } return current; }
public static ITouchProviderHandler getCurrentProviderHandler() { if (current == null) { current = createProviderHandler(Settings.Default.output); } return(current); }
public TouchHandler(ITouchProviderHandler handler, long id) { this.id = id; this.handler = handler; ulong touchStartID = (ulong)(id - 1) * 4 + 1;//This'll make sure the touch point IDs won't be the same. DuoTouch uses a span of 4 IDs. this.duoTouch = new DuoTouch(Settings.Default.pointer_positionSmoothing, touchStartID); this.lastCursorPos = new CursorPos(0, 0,0,0, 0); this.timeoutTimer = new System.Timers.Timer(); this.timeoutTimer.Interval = Settings.Default.pointer_cursorStillHideTimeout; this.timeoutTimer.Elapsed += timeoutTimer_Elapsed; this.timeoutTimer.Enabled = true; this.timeoutTimer.Start(); }
public TouchHandler(ITouchProviderHandler handler, long id) { this.id = id; this.handler = handler; ulong touchStartID = (ulong)(id - 1) * 4 + 1;//This'll make sure the touch point IDs won't be the same. DuoTouch uses a span of 4 IDs. this.duoTouch = new DuoTouch(Settings.Default.pointer_positionSmoothing, touchStartID); this.lastCursorPos = new CursorPos(0, 0, 0, 0, 0); this.timeoutTimer = new System.Timers.Timer(); this.timeoutTimer.Interval = Settings.Default.pointer_cursorStillHideTimeout; this.timeoutTimer.Elapsed += timeoutTimer_Elapsed; this.timeoutTimer.Enabled = true; this.timeoutTimer.Start(); }