Exemplo n.º 1
0
void uiBaseInventoryNode::onCapturedMouseMove (uiNode_t* node, int x, int y)
{
	const int delta = abs(oldMouseX - x) + abs(oldMouseY - y);
	if (delta > 15) {
		UI_DNDDragItem(node, dragInfoIC);
		UI_MouseRelease();
	}
}
Exemplo n.º 2
0
void uiContainerNode::onCapturedMouseMove (uiNode_t *node, int x, int y)
{
	const int delta = abs(oldMouseX - x) + abs(oldMouseY - y);
	if (delta > 15) {
		UI_DNDDragItem(node, &(dragInfoIC->item));
		UI_MouseRelease();
	}
}