mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 17:05:08 +00:00
input: add option to keep pads connected
This commit is contained in:
parent
08c1a14b13
commit
2ef120fdcd
7 changed files with 29 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "stdafx.h"
|
||||
#include "PadHandler.h"
|
||||
#include "Emu/system_utils.hpp"
|
||||
#include "Emu/system_config.h"
|
||||
#include "Input/pad_thread.h"
|
||||
#include "Input/product_info.h"
|
||||
|
||||
|
|
@ -766,6 +767,19 @@ void PadHandlerBase::process()
|
|||
}
|
||||
case connection::disconnected:
|
||||
{
|
||||
if (g_cfg.io.keep_pads_connected)
|
||||
{
|
||||
if (!last_connection_status[i])
|
||||
{
|
||||
input_log.success("%s device %d connected by force", m_type, i);
|
||||
pad->m_port_status |= CELL_PAD_STATUS_CONNECTED;
|
||||
pad->m_port_status |= CELL_PAD_STATUS_ASSIGN_CHANGES;
|
||||
last_connection_status[i] = true;
|
||||
connected_devices++;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (last_connection_status[i])
|
||||
{
|
||||
input_log.error("%s device %d disconnected", m_type, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue