Skip to content

Commit

Permalink
PAD: Fix ldd_data transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin9doi committed May 18, 2024
1 parent 9ceb22a commit 97d5deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/Modules/cellPad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ void pad_get_data(u32 port_no, CellPadData* data, bool get_periph_data = false)
}
else if (pad->ldd)
{
pad->ldd_data = *data;
if (setting & CELL_PAD_SETTING_SENSOR_ON)
data->len = CELL_PAD_LEN_CHANGE_SENSOR_ON;
else
data->len = (setting & CELL_PAD_SETTING_PRESS_ON) ? CELL_PAD_LEN_CHANGE_PRESS_ON : CELL_PAD_LEN_CHANGE_DEFAULT;
std::memcpy(data->button, pad->ldd_data.button, data->len * sizeof(u16));
return;
}
else
Expand Down

0 comments on commit 97d5deb

Please sign in to comment.