本文整理汇总了C#中POINTER_INFO.Copy方法的典型用法代码示例。如果您正苦于以下问题:C# POINTER_INFO.Copy方法的具体用法?C# POINTER_INFO.Copy怎么用?C# POINTER_INFO.Copy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类POINTER_INFO
的用法示例。
在下文中一共展示了POINTER_INFO.Copy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DetargetAllExcept
/// <summary>
/// Detargets all pointers except the one with the specified ID.
/// </summary>
/// <param name="pointerID">The pointer to leave targetted.</param>
public void DetargetAllExcept(int pointerID)
{
for (int j = 0; j < numActivePointers; ++j)
{
if (activePointers[j] != pointerID)
{
for (int i = 0; i < uiCameras.Length; ++i)
if (uiCameras[i].camera != null && uiCameras[i].camera.gameObject.active)
{
if (pointers[i, activePointers[j]].targetObj != null)
{
// Gracefully release the current control:
POINTER_INFO ptr = new POINTER_INFO();
ptr.Copy(pointers[i, pointerID]);
ptr.isTap = false;
ptr.evt = POINTER_INFO.INPUT_EVENT.RELEASE_OFF;
pointers[i, pointerID].targetObj.OnInput(ptr);
pointers[i, activePointers[j]].targetObj = null;
}
}
}
}
}