public void DoKeyEvent(KeyEventCode code, KeyEventType type) { if (keyValuePairs.ContainsKey(code)) { var key = keyValuePairs[code]; key.type = type; } }
public KeyEventType GetKeyEventType(KeyEventCode code) { if (keyValuePairs.ContainsKey(code)) { var key = keyValuePairs[code]; return(key.type); } return(KeyEventType.None); }
/// <summary> /// Press button devices /// </summary> public void PressButton(KeyEventCode key) { keys = (int)key; new Thread(new ThreadStart(PressButtonThread)).Start(); }
public KeyEventStatus(KeyEventCode code) { this.code = code; }