Exemplo n.º 1
0
 public Pen(uint touchPoints, FeedbackMode mode)
 {
     if (!IsSupported)
     {
         throw new ExternalException("Not Supported on your OS.");
     }
     _contact = new POINTER_PEN_INFO();
     _contact.pointerInfo.pointerType = TouchApi.PT_PEN;
     _contact.pointerInfo.pointerId   = 0;
     _contact.pressure = 32000;
     _contact.penFlags = TouchApi.PEN_FLAG_NONE;
     _contact.penMask  = TouchApi.PEN_MASK_PRESSURE;
     if (!TouchApi.InitializeTouchInjection(touchPoints, (uint)mode))
     {
         throw new ExternalException("Initialisation failed. Code: " + Marshal.GetLastWin32Error());
     }
 }
Exemplo n.º 2
0
 public static extern bool GetPointerPenInfo(int pointerId, out POINTER_PEN_INFO pointerType);
Exemplo n.º 3
0
 internal static extern bool GetPointerPenInfo(int pointerID, ref POINTER_PEN_INFO penInfo);
Exemplo n.º 4
0
 internal static extern bool GetPointerPenInfo(int pointerID, ref POINTER_PEN_INFO penInfo);
Exemplo n.º 5
0
 internal static extern bool GetPointerPenInfo([In] UInt32 pointerId, [In, Out] ref POINTER_PEN_INFO penInfo);
Exemplo n.º 6
0
 public static extern bool GetPointerPenInfo(UInt32 id, out POINTER_PEN_INFO info);