mirror of
https://github.com/libretro/Play-.git
synced 2024-11-27 18:50:28 +00:00
22 lines
406 B
C++
22 lines
406 B
C++
#pragma once
|
|
|
|
#include "PadHandler.h"
|
|
|
|
class CPH_Generic : public CPadHandler
|
|
{
|
|
public:
|
|
CPH_Generic();
|
|
virtual ~CPH_Generic();
|
|
|
|
static FactoryFunction GetFactoryFunction();
|
|
|
|
void Update(uint8*) override;
|
|
|
|
void SetButtonState(uint32, bool);
|
|
void SetAxisState(uint32, float);
|
|
|
|
private:
|
|
bool m_buttonStates[PS2::CControllerInfo::MAX_BUTTONS];
|
|
float m_axisStates[PS2::CControllerInfo::MAX_BUTTONS];
|
|
};
|