本文整理汇总了C#中MouseEventArgs.Point方法的典型用法代码示例。如果您正苦于以下问题:C# MouseEventArgs.Point方法的具体用法?C# MouseEventArgs.Point怎么用?C# MouseEventArgs.Point使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MouseEventArgs
的用法示例。
在下文中一共展示了MouseEventArgs.Point方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnMouseUp
protected override void OnMouseUp(MouseEventArgs e)
{
var p = e.Point();
if (FleuxApplication.HorizontalMirror)
{
p.X = offBmp.Width - p.X - 1;
}
if (FleuxApplication.VerticalMirror)
{
p.Y = offBmp.Height - p.Y - 1;
}
this.gestures.MouseUp(p.ToLogic());
base.OnMouseDown(e);
}
示例2: OnMouseDown
protected override void OnMouseDown(MouseEventArgs e)
{
var p = e.Point();
if (FleuxApplication.HorizontalMirror)
{
p.X = offBmp.Width - p.X - 1;
}
if (FleuxApplication.VerticalMirror)
{
p.Y = offBmp.Height - p.Y - 1;
}
this.gestures.MouseDown(p.ToLogic());
if (FleuxSettings.HapticFeedbackMode == FleuxSettings.HapticOptions.AnyPress)
{
FleuxApplication.Led.Vibrate();
}
base.OnMouseDown(e);
}
示例3: OnMouseUp
protected override void OnMouseUp(MouseEventArgs e)
{
this.gestures.MouseUp(e.Point().ToLogic());
base.OnMouseDown(e);
}
示例4: OnMouseMove
protected override void OnMouseMove(MouseEventArgs e)
{
var p = new Point((int)(e.Point().X / DownScale), (int)(e.Point().Y / DownScale));
if (FleuxApplication.HorizontalMirror)
{
p.X = offBmpWidth - p.X - 1;
}
if (FleuxApplication.VerticalMirror)
{
p.Y = offBmpHeight - p.Y - 1;
}
this.gestures.MouseMove(p.ToLogic());
base.OnMouseDown(e);
}
示例5: OnMouseDown
protected override void OnMouseDown(MouseEventArgs e)
{
this.gestures.MouseDown(e.Point().ToLogic());
if (FleuxSettings.HapticFeedbackMode == FleuxSettings.HapticOptions.AnyPress)
{
FleuxApplication.Led.Vibrate();
}
base.OnMouseDown(e);
}