Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/api/playstation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub fn parse_dualshock_controller_data(
hidapi: &HidApi,
) -> Result<Controller> {
let bluetooth = device_info.interface_number() == -1;
let device = hidapi.open(device_info.vendor_id(), device_info.product_id())?;
let device = device_info.open_device(hidapi)?;
let mut controller = Controller {
name: "DualShock 4".to_string(),
product_id: device_info.product_id(),
Expand Down Expand Up @@ -189,7 +189,7 @@ pub fn parse_dualsense_controller_data(
hidapi: &HidApi,
) -> Result<Controller> {
let bluetooth = device_info.interface_number() == -1;
let device = hidapi.open(device_info.vendor_id(), device_info.product_id())?;
let device = device_info.open_device(hidapi)?;

// Read data from device_info
let mut buf = [0u8; DS_INPUT_REPORT_BT_SIZE];
Expand Down