{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13622","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13622/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13622/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13622/events","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13622","id":103834837,"number":13622,"title":"Introduce touch down event support for CCMenu","user":{"login":"giginet","id":147051,"avatar_url":"https://avatars.githubusercontent.com/u/147051?v=3","gravatar_id":"","url":"https://api.github.com/users/giginet","html_url":"https://github.com/giginet","followers_url":"https://api.github.com/users/giginet/followers","following_url":"https://api.github.com/users/giginet/following{/other_user}","gists_url":"https://api.github.com/users/giginet/gists{/gist_id}","starred_url":"https://api.github.com/users/giginet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giginet/subscriptions","organizations_url":"https://api.github.com/users/giginet/orgs","repos_url":"https://api.github.com/users/giginet/repos","events_url":"https://api.github.com/users/giginet/events{/privacy}","received_events_url":"https://api.github.com/users/giginet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-29T07:13:39Z","updated_at":"2015-09-01T02:22:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/13622","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13622","diff_url":"https://github.com/cocos2d/cocos2d-x/pull/13622.diff","patch_url":"https://github.com/cocos2d/cocos2d-x/pull/13622.patch"},"body":"We can't activate callback functions when `MenuItem`s are pressed down.\r\n\r\nThis PR make it to enable to handle touch down event on `Menu`.\r\n\r\n```cpp\r\nauto menuItem = cocos2d::MenuItemImage::create(\"button.png\", \"button.png\", [](Ref *button) {\r\n    cocos2d::log(\"touch down event\");\r\n});\r\nauto menu = cocos2d::Menu::create(menuItem, nullptr);\r\nmenu->setEventType(cocos2d::Menu::EventType::TOUCH_DOWN);\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/136554546","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13622#issuecomment-136554546","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13622","id":136554546,"user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T02:22:31Z","updated_at":"2015-09-01T02:22:31Z","body":"I think it's a good add-up to the current Menu system, but it adds new APIs, so I need your opinion @minggo @zilongshanren"}}