Ejemplo n.º 1
0
        public MultitouchPointerInfoRaw getPointerInfoRaw()
        {
            MultitouchPointerInfoRaw info = new MultitouchPointerInfoRaw();

            if (Down)
            {
                info.Status = MULTI_TIPSWITCH_BIT | MULTI_IN_RANGE_BIT | MULTI_CONFIDENCE_BIT;
            }
            else if (Hover)
            {
                info.Status = MULTI_IN_RANGE_BIT | MULTI_CONFIDENCE_BIT;
            }
            else
            {
                info.Status = 0;
            }

            info.ContactID = this.ID;
            info.XValue    = (ushort)(X * (double)MULTI_MAX_COORDINATE);
            info.YValue    = (ushort)(Y * (double)MULTI_MAX_COORDINATE);
            info.Width     = 20;
            info.Height    = 30;

            return(info);
        }
Ejemplo n.º 2
0
 public MultitouchPointerInfoRaw[] getTouchesRaw()
 {
     MultitouchPointerInfoRaw[] allTouches = new MultitouchPointerInfoRaw[touches.Count];
     for (int i = 0; i < touches.Count; i++)
     {
         allTouches[i] = touches[i].getPointerInfoRaw();
     }
     return(allTouches);
 }
Ejemplo n.º 3
0
        public MultitouchPointerInfoRaw getPointerInfoRaw()
        {
            MultitouchPointerInfoRaw info = new MultitouchPointerInfoRaw();
            if (Down)
            {
                info.Status = MULTI_TIPSWITCH_BIT | MULTI_IN_RANGE_BIT | MULTI_CONFIDENCE_BIT;
            }
            else if(Hover)
            {
                info.Status = MULTI_IN_RANGE_BIT | MULTI_CONFIDENCE_BIT;
            }
            else
            {
                info.Status = 0;
            }

            info.ContactID = this.ID;
            info.XValue = (ushort)(X * (double)MULTI_MAX_COORDINATE);
            info.YValue = (ushort)(Y * (double)MULTI_MAX_COORDINATE);
            info.Width = 20;
            info.Height = 30;

            return info;
        }
Ejemplo n.º 4
0
 public MultitouchPointerInfoRaw[] getTouchesRaw()
 {
     MultitouchPointerInfoRaw[] allTouches = new MultitouchPointerInfoRaw[touches.Count];
     for (int i = 0; i < touches.Count; i++ )
     {
         allTouches[i] = touches[i].getPointerInfoRaw();
     }
     return allTouches;
 }
Ejemplo n.º 5
0
 public static extern bool vmulti_update_multitouch(IntPtr vmulti, MultitouchPointerInfoRaw[] pTouch, byte actualCount, byte request_type, byte report_control_id);