mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
27 lines
569 B
C++
27 lines
569 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
#include "PadHandler.h"
|
|
|
|
class PadManager //: public wxWindow
|
|
{
|
|
bool m_inited;
|
|
std::unique_ptr<PadHandlerBase> m_pad_handler;
|
|
|
|
public:
|
|
PadManager();
|
|
~PadManager();
|
|
|
|
void Init(const u32 max_connect);
|
|
void Close();
|
|
|
|
std::vector<Pad>& GetPads() { return m_pad_handler->GetPads(); }
|
|
PadInfo& GetInfo() { return m_pad_handler->GetInfo(); }
|
|
std::vector<Button>& GetButtons(const u32 pad) { return m_pad_handler->GetButtons(pad); }
|
|
|
|
bool IsInited() const { return m_inited; }
|
|
|
|
//private:
|
|
//DECLARE_EVENT_TABLE();
|
|
}; |