Exemple #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);
        }
Exemple #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);
 }
        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;
        }
 public MultitouchPointerInfoRaw[] getTouchesRaw()
 {
     MultitouchPointerInfoRaw[] allTouches = new MultitouchPointerInfoRaw[touches.Count];
     for (int i = 0; i < touches.Count; i++ )
     {
         allTouches[i] = touches[i].getPointerInfoRaw();
     }
     return allTouches;
 }
Exemple #5
0
 public static extern bool vmulti_update_multitouch(IntPtr vmulti, MultitouchPointerInfoRaw[] pTouch, byte actualCount, byte request_type, byte report_control_id);