2019-12-31 21:02:35 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
2019-06-27 10:25:52 +01:00
|
|
|
#include <mutex>
|
2019-12-31 21:02:35 +01:00
|
|
|
#include "PadHandler.h"
|
|
|
|
// #include "InputBindingManager.h"
|
|
|
|
|
|
|
|
class CPH_Libretro_Input : public CPadHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPH_Libretro_Input() = default;
|
|
|
|
virtual ~CPH_Libretro_Input() = default;
|
|
|
|
|
|
|
|
void Update(uint8*) override;
|
|
|
|
|
|
|
|
static FactoryFunction GetFactoryFunction();
|
2019-06-27 10:25:52 +01:00
|
|
|
|
|
|
|
void UpdateInputState();
|
|
|
|
|
|
|
|
private:
|
2019-06-28 19:40:39 +01:00
|
|
|
int16 m_btns_state = 0;
|
2019-07-03 17:34:57 +01:00
|
|
|
uint8 m_axis_btn_state[4] = {0x7F};
|
2019-07-08 20:06:21 +01:00
|
|
|
std::mutex m_input_mutex;
|
2019-12-31 21:02:35 +01:00
|
|
|
};
|