public HandleMove ( Point currentPoint, Point currentRealWorldPoint ) : void | ||
currentPoint | Point | |
currentRealWorldPoint | Point | |
return | void |
public void HandleMove(Point? currentPoint, Point? currentRealWorldPoint)
{
if (currentRealWorldPoint == null)
{
this.currentPoint = (Point)currentPoint;
if (handMode == HandMode.Normal)
{
HandleNormalMode((Point)currentPoint);
lastPoint = (Point)currentPoint;
}
else if (handMode == HandMode.BackPlane)
{
bool dropSession = HandleBackPlaneMode((Point)currentPoint);
if (dropSession)
{
DropSessionTrigger(this, EventArgs.Empty);
}
lastPoint = (Point)currentPoint;
}
}
else
{
lastRealWorldPoint = (Point)currentRealWorldPoint;
}
}
private void pointDenoiser_PrimaryPointUpdate(object sender, HandPointContextEventArgs e) { if (e.HPC.nUserID == pointDenoiser.PrimaryID) { lastRealHandPoint = e.HPC.Position; handHandler.HandleMove(null, new Point?(new Point((int)e.HPC.Position.X, (int)e.HPC.Position.Y))); } }