| 649 | } |
| 650 | } |
| 651 | bool Camera3DTestDemo::onTouchesCommon(Touch* touch, Event* event, bool* touchProperty) |
| 652 | { |
| 653 | auto target = static_cast<Label*>(event->getCurrentTarget()); |
| 654 | |
| 655 | Vec2 locationInNode = target->convertToNodeSpace(touch->getLocation()); |
| 656 | Size s = target->getContentSize(); |
| 657 | Rect rect = Rect(0, 0, s.width, s.height); |
| 658 | |
| 659 | if (rect.containsPoint(locationInNode)) |
| 660 | { |
| 661 | *touchProperty = true; |
| 662 | return true; |
| 663 | } |
| 664 | return false; |
| 665 | } |
| 666 | bool Camera3DTestDemo::isState(unsigned int state, unsigned int bit) const |
| 667 | { |
| 668 | return (state & bit) == bit; |
nothing calls this directly
no test coverage detected