コード例 #1
0
        public void Reinitialize()
        {
            var old = _callback;

            _callback = KeyboardManager.GlobalCallback(RaiseEvents);
            old.Dispose();
        }
コード例 #2
0
 public GlobalKeyboardHandler()
 {
     _semaphore = new SemaphoreSlim(1, 1);
     _callback  = KeyboardManager.GlobalCallback(RaiseEvents);
 }