I am trying to draw a line that when the mouse moves that is draws a line, but it isn't working

Here is my code

bool AScene::onTouchMoved(Touch* touch, Event* event)
{
	labelTouchInfo->setPosition(touch->getLocation());
	
	auto draw = DrawNode::create(2.0F);
	draw->drawLine(Point(0, 0), Point(100, 0), Color4F::RED);
	addChild(draw);
	
	return true;
}

When I run the program nothing is drawn to the screen

I think that you need to use RenderTexture for this. Also, you need to onTouchesMoved, notice it is plural.