Merge pull request #832 from craftworkgames/revert-831-add_copy-constructor-listener

Revert "Add copy constructor for KeyboardListener."
This commit is contained in:
Max Kopjev
2024-01-03 19:20:33 +01:00
committed by GitHub
@@ -27,21 +27,6 @@ namespace MonoGame.Extended.Input.InputListeners
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; }