diff --git a/include/osgWidget/EventInterface b/include/osgWidget/EventInterface index 06d586c95..5ac701b62 100644 --- a/include/osgWidget/EventInterface +++ b/include/osgWidget/EventInterface @@ -314,6 +314,11 @@ class OSGWIDGET_EXPORT EventInterface return _eventMask; } + typedef std::list > CallbackList; + + inline CallbackList& getCallbacks() { return _callbacks; } + inline const CallbackList& getCallbacks() const { return _callbacks; } + void addCallback(Callback* cb) { _callbacks.push_back(cb); } @@ -400,7 +405,6 @@ class OSGWIDGET_EXPORT EventInterface bool canKeyUp () const { return (_eventMask & EVENT_KEY_UP) != 0; } private: - typedef std::list > CallbackList; unsigned int _eventMask; CallbackList _callbacks;