Exemple #1
0
        public BooleanKeySwitch(bool initial, Key actkey, KeyTriggerMode tmode)
        {
            _Value = initial;
            key    = actkey;

            mode = tmode;

            Console.Out.WriteLine("Register Boolean KeySwitch [{0}] on {1}", actkey, tmode);
            switchList.Add(this);
        }
Exemple #2
0
 public CheatKeySwitch(bool initial, Key actkey, KeyTriggerMode tmode, string cheat)
     : base(initial, actkey, tmode)
 {
     activated = initial;
     code      = cheat.ToLower();
 }