private void T_Tick(object sender, EventArgs e) { List <InputDeviceEvent> events = idk.GetEvents(); if (events != null) { foreach (InputDeviceEvent ev in events) { if (ev.Pressed) { Keys k = InputDeviceKeyboard.ToKeys(ev); string t = "Sharp Name: " + InputDeviceKeyboard.SharpKeyName(ev) + Environment.NewLine; t += "Frontier Name " + ev.EventName() + Environment.NewLine; if (!InputDeviceKeyboard.CheckTranslation(ev, vkey)) { t += Environment.NewLine + " ERROR TX WRONG!"; } string frontiername = richTextBox1.Text += t + Environment.NewLine; richTextBox1.Select(richTextBox1.Text.Length, richTextBox1.Text.Length); } } } }
private void T_Tick(object sender, EventArgs e) { List <InputDeviceEvent> events = idk.GetEvents(); if (events != null) { foreach (InputDeviceEvent ev in events) { if (ev.Pressed) { Keys k = InputDeviceKeyboard.ToKeys(ev); string t = ev.EventName() + " (" + k.VKeyToString() + ")" + " Vkey " + vkey.VKeyToString(); bool ok = InputDeviceKeyboard.CheckTranslation(ev); if (!ok) { t += " **** ERROR in sharp conversion"; } if (vkey != k) { t += "**** vkey not same as DI vkey"; } richTextBox1.Text += "Direct Input " + t + Environment.NewLine; richTextBox1.Select(richTextBox1.Text.Length, richTextBox1.Text.Length); } } } }
private void T_Tick(object sender, EventArgs e) { List <InputDeviceEvent> events = idk.GetEvents(); if (events != null) { foreach (InputDeviceEvent ev in events) { if (ev.Pressed) { Keys k = InputDeviceKeyboard.ToKeys(ev); string t = "Event " + ev.EventNumber + " " + ev.EventName() + " " + ev.Pressed + " " + ev.EventNumber + " Keys " + k.VKeyToString(); richTextBox1.Text += t + Environment.NewLine; richTextBox1.Select(richTextBox1.Text.Length, richTextBox1.Text.Length); } } } }