diff --git a/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs b/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs
index 9fc85a0f..4c207aca 100644
--- a/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs
+++ b/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs
@@ -27,6 +27,21 @@ namespace MonoGame.Extended.Input.InputListeners
RepeatDelay = settings.RepeatDelayMilliseconds;
}
+ ///
+ /// Copy constructor
+ ///
+ /// Listener, from which will copy inner state
+ 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; }