// KEYSTROKE BOX 3 private void KeystrokeInput3_KeyDown(object sender, KeyEventArgs e) { selectedKey3.key = e.KeyValue; keystrokeInput3.Text = selectedKey3.ToString(); e.SuppressKeyPress = true; simpleMacros[2].SetKeyEvent(new MacroKeyEvent(new MacroKey(e.KeyValue))); }
// BUTTONS // KEYSTROKE BOX 1 private void KeystrokeInput1_KeyDown(object sender, KeyEventArgs e) { selectedKey1.key = e.KeyValue; keystrokeInput1.Text = selectedKey1.ToString(); groupBox1.Focus(); e.SuppressKeyPress = true; simpleMacros[0].SetKeyEvent(new MacroKeyEvent(new MacroKey(e.KeyValue))); }
public override string ToString() { return(_key.ToString()); }