mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-20 22:05:06 +00:00
input: fix input guard button offsets for closing native overlays
L2, R1 and all hat buttons were incorrectly enforcing the pad interception after closing a native dialog.
This commit is contained in:
parent
3bb21db71b
commit
6a07c3f46d
1 changed files with 12 additions and 9 deletions
|
|
@ -631,15 +631,18 @@ void pad_thread::operator()()
|
||||||
if (!pad->is_connected())
|
if (!pad->is_connected())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (const auto& button : pad->m_buttons)
|
for (const Button& button : pad->m_buttons)
|
||||||
{
|
{
|
||||||
if (button.m_pressed && (
|
if (button.m_pressed && (
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_CROSS ||
|
(button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1 && (
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_CIRCLE ||
|
button.m_outKeyCode == CELL_PAD_CTRL_START ||
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_TRIANGLE ||
|
button.m_outKeyCode == CELL_PAD_CTRL_SELECT)) ||
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_SQUARE ||
|
(button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL2 && (
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_START ||
|
button.m_outKeyCode == CELL_PAD_CTRL_CROSS ||
|
||||||
button.m_outKeyCode == CELL_PAD_CTRL_SELECT))
|
button.m_outKeyCode == CELL_PAD_CTRL_CIRCLE ||
|
||||||
|
button.m_outKeyCode == CELL_PAD_CTRL_TRIANGLE ||
|
||||||
|
button.m_outKeyCode == CELL_PAD_CTRL_SQUARE))
|
||||||
|
))
|
||||||
{
|
{
|
||||||
any_button_pressed = true;
|
any_button_pressed = true;
|
||||||
break;
|
break;
|
||||||
|
|
@ -676,7 +679,7 @@ void pad_thread::operator()()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& button : pad->m_buttons)
|
for (const Button& button : pad->m_buttons)
|
||||||
{
|
{
|
||||||
if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1 && button.m_outKeyCode == CELL_PAD_CTRL_PS && button.m_pressed)
|
if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1 && button.m_outKeyCode == CELL_PAD_CTRL_PS && button.m_pressed)
|
||||||
{
|
{
|
||||||
|
|
@ -735,7 +738,7 @@ void pad_thread::operator()()
|
||||||
if (!pad->is_connected())
|
if (!pad->is_connected())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (const auto& button : pad->m_buttons)
|
for (const Button& button : pad->m_buttons)
|
||||||
{
|
{
|
||||||
if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1 && button.m_outKeyCode == CELL_PAD_CTRL_START && button.m_pressed)
|
if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1 && button.m_outKeyCode == CELL_PAD_CTRL_START && button.m_pressed)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue