コード例 #1
0
        private void Window_KeyUp(object sender, KeyEventArgs e)
        {
            var command = new RemoteCommand(TypeCommand.KeyboardEvent, e.Convert());

            sendData.Enqueue(command.SerializeData());
            e.Handled = true;
        }
コード例 #2
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            var command = new RemoteCommand(TypeCommand.KeyboardEvent, e.Convert());

            sendData.Enqueue(command.SerializeData());
            e.Handled = true;

            System.Diagnostics.Debug.WriteLine($"Key:{e.Key}");
        }