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