Skip to content

Commit 8c7cb89

Browse files
committed
Fix luabinding auto gen code compile error, refer #2890
1 parent 2920290 commit 8c7cb89

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

core/base/EventTouch.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

core/base/EventTouch.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
7686
private:
7787
EventCode _eventCode;
7888
std::vector<Touch*> _touches;

0 commit comments

Comments
 (0)