Skip to content

Commit

Permalink
PS Feature reports causing unexpected behavior on startup (#1168)
Browse files Browse the repository at this point in the history
Fixed issue where PS4 feature report values were not correctly zeroed out on init.
  • Loading branch information
mikepparks authored Sep 30, 2024
1 parent c67b880 commit 9780430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/ps4/PS4Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9780430

Please sign in to comment.