summaryrefslogtreecommitdiff
path: root/src/input/keyinput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/keyinput.h')
-rw-r--r--src/input/keyinput.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/input/keyinput.h b/src/input/keyinput.h
index 81db273cc..fb8246cf5 100644
--- a/src/input/keyinput.h
+++ b/src/input/keyinput.h
@@ -84,6 +84,27 @@ class KeyInput final
mActionId(InputAction::UNDEFINED_VALUE)
{ }
+ KeyInput(const KeyInput &k) :
+ mKey(k.mKey),
+ mType(k.mType),
+#ifdef USE_SDL2
+ mText(k.mText),
+#endif
+ mActionId(k.mActionId)
+ {
+ }
+
+ KeyInput &operator=(const KeyInput &k)
+ {
+ mKey = k.mKey;
+ mType = k.mType;
+#ifdef USE_SDL2
+ mText = k.mText;
+#endif
+ mActionId = k.mActionId;
+ return *this;
+ }
+
~KeyInput()
{ }