add comment for EventListenerTouchOneByOne::checkAvailable()

This commit is contained in:
minggo 2014-04-17 14:46:52 +08:00
parent 5d90fd73d3
commit a8a8ef85e6
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ EventListenerTouchOneByOne* EventListenerTouchOneByOne::create()
bool EventListenerTouchOneByOne::checkAvailable()
{
// EventDispatcher will use the return value of 'onTouchBegan' to determine whether to pass following 'move', 'end'
// message to 'EventListenerTouchOneByOne' or not. So 'onTouchBegan' needs to be set.
if (onTouchBegan == nullptr)
{
CCASSERT(false, "Invalid EventListenerTouchOneByOne!");