Beispiel #1
0
 public WindowsKeyboard()
 {
     hook = new WindowsHook(WindowsHook.KeyboardHookId, HandleProcMessage);
     pressedKeys = new List<Key>();
     releasedKeys = new List<Key>();
     InitializeIsAvailable();
 }
Beispiel #2
0
		public WindowsKeyboard()
		{
			if (!StackTraceExtensions.StartedFromNCrunchOrNunitConsole)
				hook = new WindowsHook(WindowsHook.KeyboardHookId, HandleProcMessage);//ncrunch: no coverage
			pressedKeys = new List<Key>();
			releasedKeys = new List<Key>();
			InitializeIsAvailable();
		}
Beispiel #3
0
 public WindowsKeyboard()
 {
     if (!StackTraceExtensions.StartedFromNCrunchOrNunitConsole)
     {
         hook = new WindowsHook(WindowsHook.KeyboardHookId, HandleProcMessage);                //ncrunch: no coverage
     }
     pressedKeys  = new List <Key>();
     releasedKeys = new List <Key>();
     InitializeIsAvailable();
 }