mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
overlays: ignore input if kb pad handler is active
This commit is contained in:
parent
a1abc79f28
commit
8f14f392fd
5 changed files with 26 additions and 9 deletions
|
|
@ -13,6 +13,9 @@ LOG_CHANNEL(input_log, "Input");
|
|||
|
||||
void basic_keyboard_handler::Init(const u32 max_connect)
|
||||
{
|
||||
m_keyboards.clear();
|
||||
m_info = {};
|
||||
|
||||
for (u32 i = 0; i < max_connect; i++)
|
||||
{
|
||||
Keyboard kb{};
|
||||
|
|
@ -23,7 +26,7 @@ void basic_keyboard_handler::Init(const u32 max_connect)
|
|||
}
|
||||
|
||||
LoadSettings();
|
||||
memset(&m_info, 0, sizeof(KbInfo));
|
||||
|
||||
m_info.max_connect = max_connect;
|
||||
m_info.now_connect = std::min(::size32(m_keyboards), max_connect);
|
||||
m_info.info = input::g_keyboards_intercepted ? CELL_KB_INFO_INTERCEPTED : 0; // Ownership of keyboard data: 0=Application, 1=System
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue