mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
DS3: fix regression: pad data is cleared even if there is no new data
This commit is contained in:
parent
2dc798d539
commit
b5d4b5a21c
1 changed files with 0 additions and 2 deletions
|
@ -317,8 +317,6 @@ ds3_pad_handler::DataStatus ds3_pad_handler::get_data(ds3_device* ds3dev)
|
||||||
if (!ds3dev)
|
if (!ds3dev)
|
||||||
return DataStatus::ReadError;
|
return DataStatus::ReadError;
|
||||||
|
|
||||||
ds3dev->padData = {};
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ds3dev->padData[0] = ds3dev->report_id;
|
ds3dev->padData[0] = ds3dev->report_id;
|
||||||
const int result = hid_get_feature_report(ds3dev->hidDevice, ds3dev->padData.data(), 64);
|
const int result = hid_get_feature_report(ds3dev->hidDevice, ds3dev->padData.data(), 64);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue