diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyinput.h | 21 |
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() { } |