Example #1
0
        private void tbKeyboardZone_KeyPress(object sender, KeyPressEventArgs e)
        {
            char c = e.KeyChar;

            // Special cases
            switch (c)
            {
            // Backspace -> Delete
            case '\b':
                c = (char)0x14;
                break;

            // Escape -> Run/Stop
            case (char)27:
                c = (char)0x03;
                break;
            }

            String key = new string(c, 1);

            Ultimate64Commands.SendKeyboardString(cfg, key);
            e.Handled = true;

            tbKeyboardZone.Text = key;
        }
Example #2
0
        private void bSendString_Click(object sender, EventArgs e)
        {
            String text = tbCommand.Text;

            if (cbAppendReturn.Checked)
            {
                text += "\r";
            }

            Ultimate64Commands.SendKeyboardString(cfg, text);
        }