void HandleCustomInput()
{
Vector2 pos = _customInputPos;
pos.y = stageHeight - pos.y;
TouchInfo touch = _touches[0];
if (touch.x != pos.x || touch.y != pos.y)
{
touch.x = pos.x;
touch.y = pos.y;
touch.UpdateEvent();
onTouchMove.Call(touch.evt);
if (touch.lastRollOver != touch.target)
HandleRollOver(touch);
}
if (_customInputButtonDown)
{
if (!touch.began)
{
_touchCount = 1;
touch.begin();
this.focus = touch.target;
if (touch.target != null)
{
touch.UpdateEvent();
touch.target.onTouchBegin.BubbleCall(touch.evt);
}
}
}
else if (touch.began)
{
_touchCount = 0;
touch.end();
DisplayObject clickTarget = touch.ClickTest();
if (clickTarget != null)
{
touch.UpdateEvent();
clickTarget.onClick.BubbleCall(touch.evt);
}
}
}