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