mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
* Implemented 'cellKb*' functions from 'sys_io' module, which are part of the libkb library. * Added corresponding entries in the 'Config > Settings' menu to change the handler of the keyboard. Supported handlers: Windows, Null. INFO: This keyboard library is *very* experimental and I am aware of some bugs. There will be improvements soon.
27 lines
758 B
C++
27 lines
758 B
C++
#pragma once
|
|
|
|
#include "KeyboardHandler.h"
|
|
|
|
class KeyboardManager //: public wxWindow
|
|
{
|
|
bool m_inited;
|
|
KeyboardHandlerBase* m_keyboard_handler;
|
|
|
|
public:
|
|
KeyboardManager();
|
|
~KeyboardManager();
|
|
|
|
void Init(const u32 max_connect);
|
|
void Close();
|
|
|
|
Array<Keyboard>& GetKeyboards() { return m_keyboard_handler->GetKeyboards(); }
|
|
KbInfo& GetInfo() { return m_keyboard_handler->GetInfo(); }
|
|
Array<KbButton>& GetButtons(const u32 keyboard) { return m_keyboard_handler->GetButtons(keyboard); }
|
|
CellKbData& GetData(const u32 keyboard) { return m_keyboard_handler->GetData(keyboard); }
|
|
CellKbConfig& GetConfig(const u32 keyboard) { return m_keyboard_handler->GetConfig(keyboard); }
|
|
|
|
bool IsInited() { return m_inited; }
|
|
|
|
//private:
|
|
//DECLARE_EVENT_TABLE();
|
|
}; |