Skip to content

Commit

Permalink
PS4 mode touchpad default values fix
Browse files Browse the repository at this point in the history
Set the "touched" bits to 1 by default, which means "not touched".
  • Loading branch information
jfedor2 committed Dec 3, 2024
1 parent c4bfa53 commit b5ec304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware/src/our_descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ void ps4_clear_report(uint8_t* report, uint8_t report_id, uint16_t len) {
memset(report, 0, len);
report[0] = report[1] = report[2] = report[3] = 0x80;
report[4] = 0x08;
report[34] = report[38] = 0b10000000; // touchpad, 1 means finger not touching
}

static const uint8_t stadia_neutral[] = { 0x08, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00 };
Expand Down

0 comments on commit b5ec304

Please sign in to comment.