Commit 685f8cee authored by Ilya Prokhorov's avatar Ilya Prokhorov

Touches handling

parent c9fadc30
......@@ -2,11 +2,15 @@
FSEGTTouch::FSEGTTouch(shared_ptr<string> uuid, int x, int y)
{
this->x = x;
this->y = y;
this->setClassIdentifier(uuid);
this->setInstanceIdentifier(uuid);
};
shared_ptr<FSEGTTouch> FSEGTTouch::copy() {
auto touch = make_shared<FSEGTTouch>(this->getClassIdentifier(), x, y);
return touch;
};
\ No newline at end of file
......@@ -17,6 +17,7 @@ public:
int x;
int y;
shared_ptr<FSEGTTouch> copy();
};
......
......@@ -45,7 +45,7 @@ public:
virtual int getPointerYdiff();
shared_ptr<FSEGTIOSystem> ioSystem;
shared_ptr<Objects> touches;
shared_ptr<Objects> touches = make_shared<Objects>();
virtual ~FSEGTInputController();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment