summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/mouseinput.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/input/mouseinput.h b/src/input/mouseinput.h
index 7711381fa..e4efa93c9 100644
--- a/src/input/mouseinput.h
+++ b/src/input/mouseinput.h
@@ -82,6 +82,29 @@ class MouseInput final
mRealY(0)
{ }
+ MouseInput(const MouseInput &m) :
+ mType(m.mType),
+ mButton(m.mButton),
+ mTimeStamp(m.mTimeStamp),
+ mX(m.mX),
+ mY(m.mY),
+ mRealX(m.mRealX),
+ mRealY(m.mRealY)
+ {
+ }
+
+ MouseInput &operator=(const MouseInput &m)
+ {
+ mType = m.mType;
+ mButton = m.mButton;
+ mTimeStamp = m.mTimeStamp;
+ mX = m.mX;
+ mY = m.mY;
+ mRealX = m.mRealX;
+ mRealY = m.mRealY;
+ return *this;
+ }
+
~MouseInput()
{ }