private bool HandleBackPlaneMode(Point currentPoint)
{
if (currentPoint.X < 3)
{
if (!stopRepeat)
{
buttonSender.SendKey(ButtonCodes.BackLeft);
stopRepeat = true;
}
}
if (currentPoint.X == 3 || currentPoint.X == 4)
{
stopRepeat = false;
}
if (currentPoint.X > 4)
{
if (!stopRepeat)
{
buttonSender.SendKey(ButtonCodes.BackRight);
stopRepeat = true;
}
}
if (currentPoint.Y < 1)
{
intervalTimer.Stop();
return true;
}
if (currentPoint.Y > 4)
{
if (!stopRepeat)
{
buttonSender.SendKey(ButtonCodes.BackUp);
stopRepeat = true;
}
}
return false;
}