From 9780430f77f56ed41dac94d9b09a6bcfdad57f2a Mon Sep 17 00:00:00 2001 From: Mike Parks Date: Sun, 29 Sep 2024 20:01:17 -0700 Subject: [PATCH] PS Feature reports causing unexpected behavior on startup (#1168) Fixed issue where PS4 feature report values were not correctly zeroed out on init. --- src/drivers/ps4/PS4Driver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/ps4/PS4Driver.cpp b/src/drivers/ps4/PS4Driver.cpp index 41c09e721..26e44259c 100644 --- a/src/drivers/ps4/PS4Driver.cpp +++ b/src/drivers/ps4/PS4Driver.cpp @@ -66,6 +66,8 @@ void PS4Driver::initialize() { uint8_t descSize = sizeof(ps4_device_descriptor); memcpy(deviceDescriptor, &ps4_device_descriptor, descSize); + memset(&ps4Features, 0, sizeof(ps4Features)); + bool isDeviceEmulated = options.ps4ControllerIDMode == PS4ControllerIDMode::PS4_ID_EMULATION; if (!isDeviceEmulated) {