Ejemplo n.º 1
0
 public DummyKey(IDigitalOutputPin pin, IDelay delay, bool clickPolarity, uint clickDurationTime, uint clickReactionTime)
     : this(pin, delay)
 {
     ClickPolarity           = clickPolarity;
     ClickReactionTime       = clickReactionTime;
     ClickDurationTime       = clickDurationTime;
     DoubleClickDurationTime = ClickReactionTime / 2;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new DummyKey instance with the default values.
 /// </summary>
 /// <param name="pin"></param>
 /// <param name="delay"></param>
 public DummyKey(IDigitalOutputPin pin, IDelay delay)
 {
     Pin                     = pin;
     ClickPolarity           = false;
     ClickReactionTime       = ClickDurationTime = 100;
     DoubleClickDurationTime = ClickReactionTime / 2;
     _delay                  = delay;
 }
Ejemplo n.º 3
0
 public DummyKey(IDigitalOutputPin pin, IDelay delay, bool clickPolarity, uint clickDurationTime, uint clickReactionTime, uint doubleClickDurationTime)
     : this(pin, delay, clickPolarity, clickDurationTime, clickReactionTime)
 {
     DoubleClickDurationTime = doubleClickDurationTime;
 }