Ejemplo n.º 1
0
        public static void SetMouseStep(AppliedConfig.MouseSteps eStep)
        {
            CurrentStep = eStep;
            if (Globals.Root.CurrentConfig == null)
            {
                switch (CurrentStep)
                {
                case AppliedConfig.MouseSteps.Large:
                    MouseMove.CurrentStepSize = (int)Config.MouseStepDefaults.Large;
                    break;

                case AppliedConfig.MouseSteps.Medium:
                    MouseMove.CurrentStepSize = (int)Config.MouseStepDefaults.Medium;
                    break;

                default:
                    MouseMove.CurrentStepSize = (int)Config.MouseStepDefaults.Small;
                    break;
                }
            }
            else
            {
                MouseMove.CurrentStepSize = Globals.Root.CurrentConfig.MouseStep(eStep);
            }
        }
Ejemplo n.º 2
0
        public override void Execute(ExecutionContext context)
        {
            AppliedConfig.MouseSteps type = (AppliedConfig.MouseSteps)m_wStepType;
            int newValue = Globals.Root.CurrentConfig.MouseStep(type);

            newValue += m_wAdjustAmount;
            Config.UserUser.Write("Mouse_Step" + type, newValue);
        }