ãã¼ã¸ã§ã³3.0ãããã¾ã¾ã§ã®TouchDispatcherã¯å»æ¢ãããã¿ããå°ç¨ã¤ãã³ããªã¹ãã¼(EventListener)ãä½ã£ã¦å ¨ã¤ãã³ãå ±éã®ãã£ã¹ãããã£ã¼ï¼EventDispatcherï¼ã«ç»é²ããããã«ãªãã¾ããã ãã¼ã¸ã§ã³2ã¨ã¯ã ãã¶æããå¤ãã£ã¦ããã®ã§ãèªåèªèº«ã®ã¡ã¢ãã¦ãã¿ããã¤ãã³ãåå¾ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã ã·ã³ã°ã«ã¿ãã ãµã³ãã«ã³ã¼ãã¯ä»¥ä¸ã®éãã HelloWorldScene.cpp //ã¤ãã³ããªã¹ãã¼ä½æ bool HelloWorld::init() { if ( !Layer::init() ) { return false; } //ã¤ãã³ããªã¹ãã¼ä½æ auto listener = EventListenerTouchOneByOne::create(); //ã¤ãã³ãã飲ã¿è¾¼ããã©ãã listener->setSwallowTou
{{#tags}}- {{label}}
{{/tags}}