예제 #1
0
 protected internal GameKey(GameKey key)
 {
     this.type    = key.type;
     this.keyCode = key.keyCode;
     this.keyChar = key.keyChar;
     this.timer   = key.timer;
     this.presses = key.presses;
     this.down    = key.down;
 }
예제 #2
0
 public bool Equals(GameKey e)
 {
     if (e == null)
     {
         return(false);
     }
     if (e == this)
     {
         return(true);
     }
     if (e.type == type && e.keyCode == keyCode && e.keyChar == keyChar)
     {
         return(true);
     }
     return(false);
 }