mirror of
https://github.com/libretro/Play-.git
synced 2025-01-10 18:42:53 +00:00
99722fafd0
git-svn-id: http://svn.purei.org/purei/trunk@235 b36208d7-6611-0410-8bec-b1987f11c4a2
25 lines
580 B
C++
25 lines
580 B
C++
#ifndef _PADHANDLER_H_
|
|
#define _PADHANDLER_H_
|
|
|
|
#include "PadListener.h"
|
|
#include <list>
|
|
#include <functional>
|
|
|
|
class CPadHandler
|
|
{
|
|
public:
|
|
typedef std::tr1::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
|