File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,4 @@ EventTouch::EventTouch() : Event(Type::TOUCH)
3636 _touches.reserve (MAX_TOUCHES);
3737}
3838
39- EventTouch::EventTouch (EventCode eventCode, std::vector<Touch*> touches)
40- : Event(Type::TOUCH), _eventCode(eventCode), _touches(std::move(touches))
41- {}
42-
4339} // namespace ax
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ class AX_DLL EventTouch : public Event
5959 * Constructor.
6060 */
6161 EventTouch ();
62- EventTouch (EventCode eventCode, std::vector<Touch*> touches);
6362
6463 /* * Get event code.
6564 *
@@ -73,6 +72,17 @@ class AX_DLL EventTouch : public Event
7372 */
7473 const std::vector<Touch*>& getTouches () const { return _touches; }
7574
75+ /* * Set the event code.
76+ *
77+ * @param eventCode A given EventCode.
78+ */
79+ void setEventCode (EventCode eventCode) { _eventCode = eventCode; };
80+ /* * Set the touches
81+ *
82+ * @param touches A given touches vector.
83+ */
84+ void setTouches (const std::vector<Touch*>& touches) { _touches = touches; };
85+
7686private:
7787 EventCode _eventCode;
7888 std::vector<Touch*> _touches;
You can’t perform that action at this time.
0 commit comments