Class EventListenerNode

#include <Geode/utils/cocos.hpp>
classEventListenerNode:publiccocos2d::CCNode{ ... }

A utility node that allows for EventListener’s to be added as a node to a class, delegating memory handling onto cocos. This is helpful when there is a need to tie a listener onto a node.

Template parameters

Filter

The event filter this listener uses. See `EventListener` for more information.
Examples2
this->addChild(EventListenerNode<MyFilter>::create([&](){
    // handling code here
}));
Public static methods2
staticgeode::EventListenerNode*create()
No description provided
template<class Event,class Callback>staticgeode::EventListenerNode*create(
Eventevent
,
Callback&&callback
,
intpriority
)
No description provided
Public member functions0
Fields0
Protected member functions0
Protected fields1
;
No description provided
Derived classes0