Esempio n. 1
0
        private void MouseMovedToPan(InputState input)
        {
            float x = input.ShiftDown ? Settings.MouseDownX : input.X;
            float y = input.CtrlDown ? Settings.MouseDownY : input.Y;

            Settings.MousePan(x, y);
            Render(lowQuality: true);
        }
Esempio n. 2
0
        private void MouseMovedToPan(InputState input)
        {
            if (Configuration.LeftClickDragPan == false)
            {
                return;
            }

            float x = (input.ShiftDown || Configuration.LockHorizontalAxis) ? Settings.MouseDownX : input.X;
            float y = (input.CtrlDown || Configuration.LockVerticalAxis) ? Settings.MouseDownY : input.Y;

            Settings.MousePan(x, y);

            RenderAfterDragging();
        }