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.
Class EventListenerNode<Filter>
#include <Geode/utils/cocos.hpp>
template<class Filter>classEventListenerNode:publiccocos2d::CCNode{ ... }
Filter
The event filter this listener uses. See `EventListener` for more information.
Examples2
this->addChild(EventListenerNode<MyFilter>::create([&](){
// handling code here
}));
Public static methods3
staticgeode::EventListenerNode*create()
No description provided
staticgeode::EventListenerNode*create(typename Filter::Callbackcallback,Filterfilter)
No description provided
template<class C>staticgeode::EventListenerNode*create(C*cls,)
No description provided
Public member functions0
Fields0
Protected member functions0
Protected fields1
;
No description provided