| 80 | static Map<int, TouchPoint*> s_map; |
| 81 | |
| 82 | void MultiTouchTest::onTouchesBegan(const std::vector<Touch*>& touches, Event* event) |
| 83 | { |
| 84 | for (auto& item : touches) |
| 85 | { |
| 86 | auto touch = item; |
| 87 | auto location = touch->getLocation(); |
| 88 | auto touchPoint = TouchPoint::touchPointWithParent(this, location, *s_TouchColors[touch->getID() % 5]); |
| 89 | |
| 90 | addChild(touchPoint); |
| 91 | s_map.insert(touch->getID(), touchPoint); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void MultiTouchTest::onTouchesMoved(const std::vector<Touch*>& touches, Event* event) |
| 96 | { |
nothing calls this directly
no test coverage detected