Ejemplo n.º 1
0
 public static ITouchProviderHandler getCurrentProviderHandler()
 {
     if (current == null)
     {
         current = createProviderHandler(Settings.Default.output);
     }
     return current;
 }
Ejemplo n.º 2
0
 public static ITouchProviderHandler getCurrentProviderHandler()
 {
     if (current == null)
     {
         current = createProviderHandler(Settings.Default.output);
     }
     return(current);
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }