void CheckCursorOnButton(object sender, CursorEventArgs eventArgs) { if (navigation.CheckIfCurrentScreenEquals(Context.Toolbar) && eventArgs.newCoord == position) { output.HighlightRect(position, name.Length); } else { output.DeHighlightRect(position, name.Length); } }
void CheckForScroll(object sender, CursorEventArgs eventArgs) { if (eventArgs.newCoord.y >= 56 && eventArgs.newCoord.x == xPosition - 1) { ScrollDown(); } else if (eventArgs.newCoord.y <= 3 && eventArgs.newCoord.x == xPosition - 1) { ScrollUp(); } }
public void HighlightCheck(object sender, CursorEventArgs eventArgs) { if (IsCursorOnThisLabel()) { output.HighlightRect(new Coord(position.x - 1, position.y), 77); } else { output.DeHighlightRect(new Coord(position.x - 1, position.y), 77); } }
void SetLastPosition(object sender, CursorEventArgs eventArgs) => lastPosition = eventArgs.newCoord;