コード例 #1
0
 public KeyPressListener(Keys key, delKeyPressed target, int coolDownMillisecs)
 {
     this.Key = key;
     if (coolDownMillisecs > 0)
     {
         this.coolDownTimer = new MillisecCounter(coolDownMillisecs);
     }
     else
     {
         this.rapidFire = true;
     }
     this.signal = target;
 }
コード例 #2
0
 public KeyPressListener(Keys key, delKeyPressed target)
 {
     this.Key         = key;
     this.signal      = target;
     this.singlePress = true;
 }