private void SendMouseEvent(IMouseEvent evt, MousePhase phase)
        {
            if (!activators.Any(filter => filter.Matches(evt)))
            {
                return;
            }

            var position = PreviewImageRendererSpaceToScreenSpace.MultiplyPoint(evt.localMousePosition);

            m_InputProvider.TouchFromMouse(position, phase);
        }
Example #2
0
        private void OnMouseDown(MouseDownEvent evt)
        {
            var position = PreviewImageRendererSpaceToScreenSpace.MultiplyPoint(evt.localMousePosition);

            m_InputProvider.TouchFromMouse(position, MouseEvent.Start);
        }