Skip to content

Commit c3c3dd6

Browse files
committed
fix editorui inline
1 parent 60715dd commit c3c3dd6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bindings/2.2081/inline/EditorUI.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,30 +108,30 @@ void EditorUI::playerTouchBegan(cocos2d::CCTouch* touch, cocos2d::CCEvent* event
108108
if (winSize.width * .5f < touchLocation.x) {
109109
if (m_playerTouchID2 == -1) {
110110
m_playerTouchID2 = touch->getID();
111-
m_editorLayer->queueButton(1, true, true);
111+
m_editorLayer->queueButton(1, true, true, touch->getTimestamp());
112112
}
113113
}
114114
}
115115
else if (GameManager::sharedState()->getGameVariable("0011")) {
116116
if (m_playerTouchID2 == -1) {
117117
m_playerTouchID2 = touch->getID();
118-
m_editorLayer->queueButton(1, true, true);
118+
m_editorLayer->queueButton(1, true, true, touch->getTimestamp());
119119
}
120120
}
121121
if (m_playerTouchID1 == -1) {
122122
m_playerTouchID1 = touch->getID();
123-
m_editorLayer->queueButton(1, true, false);
123+
m_editorLayer->queueButton(1, true, false, touch->getTimestamp());
124124
}
125125
}
126126

127127
void EditorUI::playerTouchEnded(cocos2d::CCTouch* touch, cocos2d::CCEvent* event) {
128128
if (touch->getID() == m_playerTouchID1) {
129129
m_playerTouchID1 = -1;
130-
m_editorLayer->queueButton(1, false, false);
130+
m_editorLayer->queueButton(1, false, false, touch->getTimestamp());
131131
}
132132
else if (touch->getID() == m_playerTouchID2) {
133133
m_playerTouchID2 = -1;
134-
m_editorLayer->queueButton(1, false, true);
134+
m_editorLayer->queueButton(1, false, true, touch->getTimestamp());
135135
}
136136
}
137137

0 commit comments

Comments
 (0)