コード例 #1
0
/**
 * @brief Called when user request scrolling on the battlescape.
 */
bool uiBattleScapeNode::onScroll (uiNode_t* node, int deltaX, int deltaY)
{
	while (deltaY < 0) {
		CL_CameraZoomIn();
		deltaY++;
	}
	while (deltaY > 0) {
		CL_CameraZoomOut();
		deltaY--;
	}
	return true;
}
コード例 #2
0
static void CL_ZoomInQuant_f (void)
{
	CL_CameraZoomIn();
}