コード例 #1
0
ファイル: KeyPressedWaitHandle.cs プロジェクト: nico-izo/KOIB
 public KeyPressedWaitHandle(KeyPressingWaitDescriptor waitDescriptor)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     WaitDescriptor = waitDescriptor;
     PressedKeyArgs = KeyEventArgs.Empty;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }
コード例 #2
0
 public KeyPressedWaitHandle(KeyPressingWaitDescriptor waitDescriptor)
     : base(false, false)
 {
     CodeContract.Requires(waitDescriptor != null);
     WaitDescriptor       = waitDescriptor;
     PressedKeyArgs       = KeyEventArgs.Empty;
     Keyboard.KeyPressed += Keyboard_KeyPressed;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }