public KeyPressedWaitHandle(KeyPressingWaitDescriptor waitDescriptor)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     WaitDescriptor = waitDescriptor;
     PressedKeyArgs = KeyEventArgs.Empty;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }
Exemple #2
0
 public KeyPressedWaitHandle(KeyPressingWaitDescriptor waitDescriptor)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     WaitDescriptor       = waitDescriptor;
     PressedKeyArgs       = KeyEventArgs.Empty;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }
 public RepetableKeyPressWaitHandle(KeyPressingWaitDescriptor waitDescriptor, int pressRepeats)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     CodeContract.Requires(pressRepeats > 0);
     PressTimes           = pressRepeats;
     WaitDescriptor       = waitDescriptor;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }
 public RepetableKeyPressWaitHandle(KeyPressingWaitDescriptor waitDescriptor, int pressRepeats)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     CodeContract.Requires(pressRepeats > 0);
     PressTimes = pressRepeats;
     WaitDescriptor = waitDescriptor;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }