mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
implement CELL_PAD_INFO_INTERCEPTED
This commit is contained in:
parent
8ad14c4ada
commit
6f7b25de90
13 changed files with 250 additions and 153 deletions
|
|
@ -57,8 +57,10 @@ void pad_thread::Init()
|
|||
}
|
||||
}
|
||||
|
||||
const u32 system_info = m_info.system_info;
|
||||
std::memset(&m_info, 0, sizeof(m_info));
|
||||
m_info.now_connect = 0;
|
||||
m_info.system_info |= system_info;
|
||||
|
||||
m_pads.clear();
|
||||
handlers.clear();
|
||||
|
|
@ -147,6 +149,18 @@ void pad_thread::SetEnabled(bool enabled)
|
|||
is_enabled = enabled;
|
||||
}
|
||||
|
||||
void pad_thread::SetIntercepted(bool intercepted)
|
||||
{
|
||||
if (intercepted)
|
||||
{
|
||||
m_info.system_info |= CELL_PAD_INFO_INTERCEPTED;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_info.system_info &= ~CELL_PAD_INFO_INTERCEPTED;
|
||||
}
|
||||
}
|
||||
|
||||
void pad_thread::ThreadFunc()
|
||||
{
|
||||
active = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue