| 93 | } |
| 94 | |
| 95 | void MultiTouchTest::onTouchesMoved(const std::vector<Touch*>& touches, Event* event) |
| 96 | { |
| 97 | for (auto& item : touches) |
| 98 | { |
| 99 | auto touch = item; |
| 100 | auto pTP = s_map.at(touch->getID()); |
| 101 | auto location = touch->getLocation(); |
| 102 | |
| 103 | removeChild(pTP, true); |
| 104 | s_map.erase(touch->getID()); |
| 105 | |
| 106 | auto touchPointNew = TouchPoint::touchPointWithParent(this, location, *s_TouchColors[touch->getID() % 5]); |
| 107 | addChild(touchPointNew); |
| 108 | s_map.insert(touch->getID(), touchPointNew); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void MultiTouchTest::onTouchesEnded(const std::vector<Touch*>& touches, Event* event) |
| 113 | { |
nothing calls this directly
no test coverage detected