2015-05-06 02:00:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
2015-10-31 20:38:27 -04:00
|
|
|
#include "PadHandler.h"
|
2015-05-06 02:00:14 -04:00
|
|
|
|
2015-10-31 20:38:27 -04:00
|
|
|
class CPH_Generic : public CPadHandler
|
2015-05-06 02:00:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2015-10-31 20:38:27 -04:00
|
|
|
CPH_Generic();
|
|
|
|
virtual ~CPH_Generic();
|
2015-05-06 02:00:14 -04:00
|
|
|
|
|
|
|
static FactoryFunction GetFactoryFunction();
|
|
|
|
|
|
|
|
void Update(uint8*) override;
|
|
|
|
|
2015-06-30 05:26:01 -04:00
|
|
|
void SetButtonState(uint32, bool);
|
|
|
|
void SetAxisState(uint32, float);
|
2015-05-06 02:00:14 -04:00
|
|
|
|
|
|
|
private:
|
2015-05-16 23:07:24 -04:00
|
|
|
bool m_buttonStates[PS2::CControllerInfo::MAX_BUTTONS];
|
2015-06-30 05:26:01 -04:00
|
|
|
float m_axisStates[PS2::CControllerInfo::MAX_BUTTONS];
|
2015-05-06 02:00:14 -04:00
|
|
|
};
|