public Vector2 LocalToDesktop(Vector2 localPosition) { return(SDToLime.Convert( glControl.PointToScreen(LimeToSD.ConvertToPoint(localPosition, PixelScale)), PixelScale )); }
public Vector2 DesktopToLocal(Vector2 desktopPosition) { return(SDToLime.Convert( glControl.PointToClient(new Point((int)desktopPosition.X, (int)desktopPosition.Y)), PixelScale )); }
public Vector2 DesktopToLocal(Vector2 desktopPosition) { return(SDToLime.Convert( renderControl.PointToClient(LimeToSD.ConvertToPoint(desktopPosition, PixelScale)), PixelScale )); }
private void RefreshMousePosition() { if (lastMousePosition == Control.MousePosition) { return; } lastMousePosition = Control.MousePosition; var position = SDToLime.Convert(glControl.PointToClient(Control.MousePosition), PixelScale); Input.MousePosition = position * Input.ScreenToWorldTransform; Input.SetTouchPosition(0, Input.MousePosition); }