Exemple #1
0
        private void RegisterKeyboardEvents()
        {
            this.KeyDown += (sender, args) =>
            {
                if (keysMap.ContainsKey(args.Key))
                {
                    interpreter.KeyDown(this.keysMap[args.Key]);
                }
            };

            this.KeyUp += (sender, args) =>
            {
                if (keysMap.ContainsKey(args.Key))
                {
                    interpreter.KeyUp(this.keysMap[args.Key]);
                }
            };
        }