public static int GetTouch(IntPtr l)
 {
     int result;
     try
     {
         BaseInput baseInput = (BaseInput)LuaObject.checkSelf(l);
         int index;
         LuaObject.checkType(l, 2, out index);
         Touch touch = baseInput.GetTouch(index);
         LuaObject.pushValue(l, true);
         LuaObject.pushValue(l, touch);
         result = 2;
     }
     catch (Exception e)
     {
         result = LuaObject.error(l, e);
     }
     return result;
 }