Skip to content

Commit

Permalink
Merge pull request #832 from craftworkgames/revert-831-add_copy-const…
Browse files Browse the repository at this point in the history
…ructor-listener

Revert "Add copy constructor for KeyboardListener."
  • Loading branch information
Gandifil committed Jan 3, 2024
2 parents 9393251 + d143958 commit 232156b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ public KeyboardListener(KeyboardListenerSettings settings)
RepeatDelay = settings.RepeatDelayMilliseconds;
}

/// <summary>
/// Copy constructor
/// </summary>
/// <param name="keyboardListener">Listener, from which will copy inner state</param>
public KeyboardListener(KeyboardListener keyboardListener)
{
RepeatPress = keyboardListener.RepeatPress;
InitialDelay = keyboardListener.InitialDelay;
RepeatDelay = keyboardListener.RepeatDelay;
_keysValues = keyboardListener._keysValues;
_isInitial = keyboardListener._isInitial;
_previousKey = keyboardListener._previousKey;
_previousState = keyboardListener._previousState;
}

public bool RepeatPress { get; }
public int InitialDelay { get; }
public int RepeatDelay { get; }
Expand Down

0 comments on commit 232156b

Please sign in to comment.