cellPad: move CellPadData to pad_types for convenience

This commit is contained in:
Megamouse 2023-02-12 11:33:23 +01:00
parent d4187242b9
commit 1dac708323
4 changed files with 11 additions and 10 deletions

View file

@ -423,7 +423,7 @@ void pad_thread::operator()()
continue;
// Check if an LDD pad pressed the PS button (bit 0 of the first button)
if (pad->ldd && !!(static_cast<be_t<u16>>(pad->ldd_data[sizeof(be_t<u32>)]) & CELL_PAD_CTRL_LDD_PS))
if (pad->ldd && !!(pad->ldd_data.button[0] & CELL_PAD_CTRL_LDD_PS))
{
ps_button_pressed = true;
break;