mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-01 12:15:27 -06:00
Hid: add some logging for initial send_output_report
This commit is contained in:
parent
8e62a0e22d
commit
7b9614fcf3
@ -308,7 +308,10 @@ void ds3_pad_handler::check_add_device(hid_device* hidDevice, std::string_view p
|
|||||||
device->path = path;
|
device->path = path;
|
||||||
device->hidDevice = hidDevice;
|
device->hidDevice = hidDevice;
|
||||||
|
|
||||||
send_output_report(device);
|
if (send_output_report(device) == -1)
|
||||||
|
{
|
||||||
|
ds3_log.error("check_add_device: send_output_report failed! Reason: %s", hid_error(hidDevice));
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ds3_log.notice("Added device: report_id=%d, serial='%s', path='%s'", device->report_id, serial, device->path);
|
ds3_log.notice("Added device: report_id=%d, serial='%s', path='%s'", device->report_id, serial, device->path);
|
||||||
|
|||||||
@ -585,7 +585,10 @@ void ds4_pad_handler::check_add_device(hid_device* hidDevice, std::string_view p
|
|||||||
device->has_calib_data = true;
|
device->has_calib_data = true;
|
||||||
device->path = path;
|
device->path = path;
|
||||||
|
|
||||||
send_output_report(device);
|
if (send_output_report(device) == -1)
|
||||||
|
{
|
||||||
|
ds4_log.error("check_add_device: send_output_report failed! Reason: %s", hid_error(hidDevice));
|
||||||
|
}
|
||||||
|
|
||||||
ds4_log.notice("Added device: bluetooth=%d, serial='%s', hw_version: 0x%x, fw_version: 0x%x, path='%s'", device->bt_controller, serial, hw_version, fw_version, device->path);
|
ds4_log.notice("Added device: bluetooth=%d, serial='%s', hw_version: 0x%x, fw_version: 0x%x, path='%s'", device->bt_controller, serial, hw_version, fw_version, device->path);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -252,7 +252,10 @@ void dualsense_pad_handler::check_add_device(hid_device* hidDevice, std::string_
|
|||||||
device->path = path;
|
device->path = path;
|
||||||
|
|
||||||
// Activate
|
// Activate
|
||||||
send_output_report(device);
|
if (send_output_report(device) == -1)
|
||||||
|
{
|
||||||
|
dualsense_log.error("check_add_device: send_output_report failed! Reason: %s", hid_error(hidDevice));
|
||||||
|
}
|
||||||
|
|
||||||
// Get bluetooth information
|
// Get bluetooth information
|
||||||
get_data(device);
|
get_data(device);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user