internal void OnKeyboardInputReceived(object sender, Model.Input.KeyboardInput e) { Task.Factory.StartNew(delegate() { // translate input var client = GetClientByHandle(e.WindowHandle) ?? GetActiveClient(); // dispatch to each extension _extensions.Values.ToList() .ForEach(ext => { try { var L_e = new Extensibility.Input.KeyboardEventArgs { Client = client, Handled = e.Handled, CAS = e.CAS, VK = (Mubox.WinAPI.VK)e.VK, WM = e.WM, }; ext.Bridge.Keyboard.OnInputReceived(client, L_e); e.Handled = e.Handled || L_e.Handled; } catch (Exception ex) { ex.Log(); } }); }, TaskCreationOptions.PreferFairness); }
public void Keyboard_InputReceived(object sender, Extensibility.Input.KeyboardEventArgs e) { //e.Log(); //_viewModel.AddMessageInternal("Keyboard Input", // string.Format("name={0} {1}", // e.Client != null ? e.Client.Name : "(no client)", // e.ToString())); }
public void Keyboard_InputReceived(object sender, Extensibility.Input.KeyboardEventArgs e) { _lastInputTimestamp = DateTime.UtcNow.Ticks; }