public void AddPressedTogetherWithPrevious(int keyCode)
 {
     LastKeyPress = new KeyPress(LastKeyPress, new KeyPress(keyCode));
 }
 public KeyPress(KeyPress lastKeyPress, KeyPress keyPress)
 {
     _keyCode = lastKeyPress._keyCode | keyPress._keyCode;
 }
 public void Add(KeyPress keyPress)
 {
     _keys.Add(keyPress);
 }
 protected KeyPress Both(KeyPress key1, KeyPress key2)
 {
     return(key1.Join(key2));
 }
 protected KeyPress All(KeyPress key1, KeyPress key2, KeyPress key3)
 {
     return(key1.Join(key2).Join(key3));
 }
 public KeyPress Join(KeyPress press2)
 {
     return(new KeyPress(_keyCode | press2._keyCode));
 }
Exemple #7
0
 public static KeyPress Plus(this KeyPress key1, KeyPress key2)
 {
     return(key1.Join(key2));
 }