/// <summary>
/// Number of active touches from all sources.
/// </summary>
static public int touchCount
{
get
{
int count = 0;
foreach (KeyValuePair<int, MouseOrTouch> touch in mTouches)
if (touch.Value.pressed != null)
++count;
for (int i = 0; i < mMouse.Length; ++i)
if (mMouse[i].pressed != null)
++count;
if (mController.pressed != null)
++count;
return count;
}
}
/// <summary>
/// Number of active drag events from all sources.
/// </summary>
static public int dragCount
{
get
{
int count = 0;
foreach (KeyValuePair<int, MouseOrTouch> touch in mTouches)
if (touch.Value.dragged != null)
++count;
for (int i = 0; i < mMouse.Length; ++i)
if (mMouse[i].dragged != null)
++count;
if (mController.dragged != null)
++count;
return count;
}
}