本文整理汇总了C#中TouchEventArgs.GetHandled方法的典型用法代码示例。如果您正苦于以下问题:C# TouchEventArgs.GetHandled方法的具体用法?C# TouchEventArgs.GetHandled怎么用?C# TouchEventArgs.GetHandled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TouchEventArgs
的用法示例。
在下文中一共展示了TouchEventArgs.GetHandled方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTouchStart
public void OnTouchStart(TouchEventArgs e)
{
InvalidVersionAllow();
mouseCurrentX = e.GetX();
mouseCurrentY = e.GetY();
mouseleftclick = true;
for (int i = 0; i < clientmodsCount; i++)
{
if (clientmods[i] == null) { continue; }
clientmods[i].OnTouchStart(this, e);
if (e.GetHandled())
{
return;
}
}
}
示例2: OnTouchMove
public void OnTouchMove(TouchEventArgs e)
{
for (int i = 0; i < clientmodsCount; i++)
{
if (clientmods[i] == null) { continue; }
clientmods[i].OnTouchMove(this, e);
if (e.GetHandled())
{
return;
}
}
}
示例3: OnTouchStart
public override void OnTouchStart(Game game_, TouchEventArgs e)
{
touchButtonsEnabled = true;
ScreenOnTouchStart(e);
if (e.GetHandled()) { return; }
if (e.GetX() <= game.Width() / 2)
{
if (touchIdMove == -1)
{
touchIdMove = e.GetId();
touchMoveStartX = e.GetX();
touchMoveStartY = e.GetY();
game.touchMoveDx = 0;
if (e.GetY() < game.Height() * 50 / 100)
{
game.touchMoveDy = 1;
}
else
{
game.touchMoveDy = 0;
}
}
}
if (((touchIdMove != -1)
&& (e.GetId() != touchIdMove))
|| (e.GetX() > game.Width() / 2))
{
if (touchIdRotate == -1)
{
touchIdRotate = e.GetId();
touchRotateStartX = e.GetX();
touchRotateStartY = e.GetY();
}
}
}
示例4: OnTouchEnd
public void OnTouchEnd(TouchEventArgs e)
{
mouseCurrentX = 0;
mouseCurrentY = 0;
for (int i = 0; i < clientmodsCount; i++)
{
if (clientmods[i] == null) { continue; }
clientmods[i].OnTouchEnd(this, e);
if (e.GetHandled())
{
return;
}
}
}
示例5: OnTouchEnd
public override void OnTouchEnd(Game game_, TouchEventArgs e)
{
ScreenOnTouchEnd(e);
if (e.GetHandled()) { return; }
if (e.GetId() == touchIdMove)
{
touchIdMove = -1;
game.touchMoveDx = 0;
game.touchMoveDy = 0;
}
if (e.GetId() == touchIdRotate)
{
touchIdRotate = -1;
game.touchOrientationDx = 0;
game.touchOrientationDy = 0;
}
}