Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            Enabled = false;

            letterTable         = new LetterTable();
            keyTranslator       = new KeyTranslator(letterTable);
            StatusLabel.Content = "Language: \n" + letterTable.Filename;
        }
Example #2
0
        public KeyTranslator(LetterTable letterTable)
        {
            buffer = new FixedLengthQueue <string>(3);
            buffer.Clear("");
            this.letterTable = letterTable;

            //keyPressListener = new KeyStateListener();
            keyPressListener               = new LowLevelKeyboardHook();
            keyPressListener.Listen        = false;
            keyPressListener.OnKeyPressed += OnKeyPressed;
        }