Exemplo n.º 1
0
        static IEnumerable <KeyPress> ToEnumerable(IKeyProvider provider, KeyPlayer player)
        {
            var keys = new List <KeyPress>();

            provider.GetKeyStream().Subscribe(keys.Add);
            player.Play();

            return(keys);
        }
Exemplo n.º 2
0
        private IEnumerable <KeyPress> ToEnumerable(KeyProvider provider, KeyPlayer player)
        {
            var keys = new List <KeyPress>();

            provider.Subscribe(keys.Add);
            player.Play();

            return(keys);
        }