Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Firmware/RP2040/src/USBHost/HostDriver/PS4/PS4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void PS4Host::initialize(Gamepad& gamepad, uint8_t address, uint8_t instance, co
void PS4Host::process_report(Gamepad& gamepad, uint8_t address, uint8_t instance, const uint8_t* report, uint16_t len)
{
std::memcpy(&in_report_, report, std::min(static_cast<size_t>(len), sizeof(PS4::InReport)));
in_report_.buttons[2] &= PS4::COUNTER_MASK;
in_report_.buttons[2] &= static_cast<uint8_t>(~PS4::COUNTER_MASK);
if (std::memcmp(reinterpret_cast<const PS4::InReport*>(report), &prev_in_report_, sizeof(PS4::InReport)) == 0)
{
return;
Expand Down