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; }
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); }