mirror of https://github.com/axmolengine/axmol.git
add comment for EventListenerTouchOneByOne::checkAvailable()
This commit is contained in:
parent
5d90fd73d3
commit
a8a8ef85e6
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue