From b5ec3048094fa7c3b97b012d5ff0c5aa0dff3ec1 Mon Sep 17 00:00:00 2001 From: Jacek Fedorynski Date: Tue, 3 Dec 2024 19:54:53 +0100 Subject: [PATCH] PS4 mode touchpad default values fix Set the "touched" bits to 1 by default, which means "not touched". --- firmware/src/our_descriptor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/src/our_descriptor.cc b/firmware/src/our_descriptor.cc index 2ba3ca8..6d80bcd 100644 --- a/firmware/src/our_descriptor.cc +++ b/firmware/src/our_descriptor.cc @@ -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 };