Esempio n. 1
0
        public override void Update(CMSModule module)
        {
            lock (mutex)
            {
                CMSClickControlModuleStandard clickModule = module as CMSClickControlModuleStandard;

                this.DwellTime    = clickModule.DwellTime;
                this.PlaySound    = clickModule.PlaySound;
                this.Radius       = clickModule.Radius;
                this.ClickEnabled = clickModule.ClickEnabled;
            }
        }
        public override void Update(CMSModule module)
        {
            CMSMouseControlModuleStandard newConfig = module as CMSMouseControlModuleStandard;

            if (newConfig == null)
            {
                throw new Exception("Invalid Config");
            }

            this.reverseHorizontal  = newConfig.ReverseHorizontal;
            this.userHorizontalGain = newConfig.UserHorizontalGain;
            this.userVerticalGain   = newConfig.UserVerticalGain;
            this.Damping            = newConfig.Damping;
            this.EastLimit          = newConfig.EastLimit;
            this.SouthLimit         = newConfig.SouthLimit;
            this.WestLimit          = newConfig.WestLimit;
            this.NorthLimit         = newConfig.NorthLimit;
        }
Esempio n. 3
0
 public override void Update(CMSModule module)
 {
 }
 public abstract void Update(CMSModule module);