mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-03 15:20:27 +01:00
shared_mutex_t implemented GUI Emu Callbacks rewritten fxm::import, fxm::import_always implemented cellMsgDialog rewritten Emu.CallAfter improved (returns std::future)
21 lines
689 B
C++
21 lines
689 B
C++
#pragma once
|
|
|
|
#include "KeyboardHandler.h"
|
|
|
|
class KeyboardManager
|
|
{
|
|
std::unique_ptr<KeyboardHandlerBase> m_keyboard_handler;
|
|
|
|
public:
|
|
void Init(u32 max_connect);
|
|
void Close();
|
|
|
|
std::vector<Keyboard>& GetKeyboards() { return m_keyboard_handler->GetKeyboards(); }
|
|
KbInfo& GetInfo() { return m_keyboard_handler->GetInfo(); }
|
|
std::vector<KbButton>& GetButtons(const u32 keyboard) { return m_keyboard_handler->GetButtons(keyboard); }
|
|
KbData& GetData(const u32 keyboard) { return m_keyboard_handler->GetData(keyboard); }
|
|
KbConfig& GetConfig(const u32 keyboard) { return m_keyboard_handler->GetConfig(keyboard); }
|
|
|
|
bool IsInited() const { return m_keyboard_handler.operator bool(); }
|
|
};
|