FairyGUI.Stage.GetAllTouch C# (CSharp) Method

GetAllTouch() public method

public GetAllTouch ( int result ) : int[]
result int
return int[]
		public int[] GetAllTouch(int[] result)
		{
			if (result == null)
				result = new int[_touchCount];
			int i = 0;
			for (int j = 0; j < 5; j++)
			{
				TouchInfo touch = _touches[j];
				if (touch.touchId != -1)
				{
					result[i++] = touch.touchId;
					if (i >= result.Length)
						break;
				}
			}
			return result;
		}

Usage Example

示例#1
0
 static public int GetAllTouch(IntPtr l)
 {
     try {
         FairyGUI.Stage self = (FairyGUI.Stage)checkSelf(l);
         System.Int32[] a1;
         checkArray(l, 2, out a1);
         var ret = self.GetAllTouch(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Stage::GetAllTouch