[email protected] 8 лет назад
Родитель
Сommit
e24e75045e
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      oxygine/src/EventDispatcher.h

+ 2 - 0
oxygine/src/EventDispatcher.h

@@ -57,6 +57,8 @@ namespace oxygine
         int getListenersCount() const;
         int getListenersCount() const;
         int getLastListenerID() const { return _lastID; }
         int getLastListenerID() const { return _lastID; }
 
 
+        const EventCallback& getListenerByIndex(int index) const { return (*_listeners)[index].cb; }
+
 
 
     protected:
     protected: