Ejemplo n.º 1
0
        private void NotifyMessage(MessageDefinition.KeyboardState keyboardState, WindowsInput.Native.VirtualKeyCode vKCode)
        {
            KeyBoardMessageReceivedEventArgs args = new KeyBoardMessageReceivedEventArgs {
                keyboardState = keyboardState, virtualKeyCode = vKCode
            };

            KeyBoardMessageReceived?.Invoke(this, args);
        }
Ejemplo n.º 2
0
 private void OnKeyBoardMessageReceived(object sender, KeyBoardMessageReceivedEventArgs e)
 {
     VirtualKeyCode[] combinedKeys = CombineKeys(e.keyboardState, e.virtualKeyCode);
     SendKeyBoardMessageToClients(e.keyboardState, e.virtualKeyCode);
     SendKeyBoardMessageToClients(combinedKeys);
 }