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; }
public KeyPressListener(Keys key, delKeyPressed target) { this.Key = key; this.signal = target; this.singlePress = true; }