overlays/input: allow ldd pad input

This commit is contained in:
Megamouse 2024-02-10 14:58:53 +01:00
parent dc05d38867
commit aff2588cce
2 changed files with 77 additions and 4 deletions

View file

@ -399,9 +399,8 @@ void pad_thread::operator()()
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
continue;
// TODO: this keeps opening the home menu. Find out how to do it properly.
// Check if an LDD pad pressed the PS button (bit 0 of the first button)
if (false && pad->ldd && !!(pad->ldd_data.button[0] & CELL_PAD_CTRL_LDD_PS))
if (pad->ldd && pad->ldd_data.len >= 1 && !!(pad->ldd_data.button[0] & CELL_PAD_CTRL_LDD_PS))
{
ps_button_pressed = true;
break;