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