mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6311 from minggo/comment-event-listener
add comment for EventListenerTouchOneByOne::checkAvailable()
This commit is contained in:
commit
b85a2c08e5
|
@ -82,6 +82,8 @@ EventListenerTouchOneByOne* EventListenerTouchOneByOne::create()
|
||||||
|
|
||||||
bool EventListenerTouchOneByOne::checkAvailable()
|
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)
|
if (onTouchBegan == nullptr)
|
||||||
{
|
{
|
||||||
CCASSERT(false, "Invalid EventListenerTouchOneByOne!");
|
CCASSERT(false, "Invalid EventListenerTouchOneByOne!");
|
||||||
|
|
Loading…
Reference in New Issue