Play-/Source/PadHandler.h
Jean-Philip Desjardins 17eff944e4 Cleanup.
2023-01-18 15:53:28 -05:00

24 lines
482 B
C++

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