예제 #1
0
        public override void InjectPointer(PointerData pointerData)
        {
            Log.Out(msg: "Inject Pointer: {0}", (object)pointerData.ToString());
            var injectedInputTouchInfo     = GetInjectedInputTouchInfo(pointerData: pointerData);
            var injectedInputTouchInfoList = new List <InjectedInputTouchInfo>();

            injectedInputTouchInfoList.Add(item: injectedInputTouchInfo);
            this.injector.InjectTouchInput(input: injectedInputTouchInfoList);
        }
 public override void InjectPointer(PointerData pointerData)
 {
     Log.Out(msg: "Inject Pointer: {0}", (object)pointerData.ToString());
     if (!InternalNativeMethods.InjectPointerInput(device: this.device, pointerTypeInfo: new PointerTypeInfo[1] {
         TransformPointer(pointerData: pointerData, inputType: POINTER_INPUT_TYPE.TOUCH)
     }, count: 1U))
     {
         throw new Win32Exception(error: Marshal.GetLastWin32Error());
     }
 }
예제 #3
0
        public override void InjectPointer(PointerData pointerData)
        {
            Log.Out(msg: "Inject Pointer: {0}", (object)pointerData.ToString());
            var pointerTouchInfo = new PointerTouchInfo[1] {
                new PointerTypeInfo[1] {
                    TransformPointer(pointerData: pointerData, inputType: POINTER_INPUT_TYPE.TOUCH)
                }[0].data.touchInfo
            };

            PrunePointerFlags(pointerFlags: ref pointerTouchInfo[0].pointerInfo.pointerFlags);
            if (!InternalNativeMethodsLegacy.InjectTouchInput(count: (uint)pointerTouchInfo.Length, pointerTouchInfo: pointerTouchInfo))
            {
                throw new Win32Exception(error: Marshal.GetLastWin32Error());
            }
        }
예제 #4
0
 public override void InjectPointer(PointerData pointerData)
 {
     Log.Out(msg: "Inject Pointer: {0}", (object)pointerData.ToString());
     this.injector.InjectPenInput(input: GetInjectedInputPenInfo(pointerData: pointerData));
 }