mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-12 10:44:23 +01:00
shared_mutex_t implemented GUI Emu Callbacks rewritten fxm::import, fxm::import_always implemented cellMsgDialog rewritten Emu.CallAfter improved (returns std::future)
19 lines
443 B
C++
19 lines
443 B
C++
#pragma once
|
|
|
|
#include "PadHandler.h"
|
|
|
|
class PadManager
|
|
{
|
|
std::unique_ptr<PadHandlerBase> m_pad_handler;
|
|
|
|
public:
|
|
void Init(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_pad_handler.operator bool(); }
|
|
};
|