mirror of
https://github.com/libretro/Play-.git
synced 2024-11-27 18:50:28 +00:00
25 lines
462 B
C++
25 lines
462 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();
|
|
virtual ~CPadHandler();
|
|
virtual void Update(uint8*) = 0;
|
|
void InsertListener(CPadListener*);
|
|
void RemoveAllListeners();
|
|
|
|
protected:
|
|
typedef std::list<CPadListener*> ListenerList;
|
|
ListenerList m_listeners;
|
|
};
|
|
|
|
#endif
|