Esempio n. 1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);
            var     pos   = e.GetPosition(this);
            Vector2 posV2 = new((float)pos.X, (float)pos.Y);

            if (_mouseLocked)
            {
                _inputBridge.UpdateCursorPos(posV2, _center);
            }
            else
            {
                _inputBridge.UpdateCursorPos(posV2, null);
            }
        }