#ifndef _PADHANDLER_H_ #define _PADHANDLER_H_ #include "PadListener.h" #include #include class CPadHandler { public: typedef std::tr1::function FactoryFunction; CPadHandler(); virtual ~CPadHandler(); virtual void Update(uint8*) = 0; void InsertListener(CPadListener*); void RemoveAllListeners(); protected: typedef std::list ListenerList; ListenerList m_listeners; }; #endif