CCBlockTouchLayer.h 478 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // CCBlockTouchLayer.h
  3. // cocos2d_libs
  4. //
  5. // Created by zhuge on 2023/3/16.
  6. //
  7. #ifndef CCBlockTouchLayer_h
  8. #define CCBlockTouchLayer_h
  9. #include "2d/CCLayer.h"
  10. NS_CC_BEGIN
  11. class CCBlockTouchLayer: public cocos2d::Layer {
  12. public:
  13. CREATE_FUNC(CCBlockTouchLayer);
  14. CCBlockTouchLayer();
  15. ~CCBlockTouchLayer();
  16. bool init() override;
  17. private:
  18. void _registTouch();
  19. bool hasVisibleParents();
  20. };
  21. NS_CC_END
  22. #endif /* CCBlockTouchLayer_h */