Skip to content

Commit

Permalink
fix(DualSense): don't stop the device if a stop event is seen
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Apr 14, 2024
1 parent 6bbfbeb commit c38a94a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/input/target/dualsense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ impl DualSenseDevice {
// UHID_DESTROY.
OutputEvent::Stop => {
log::debug!("Stop event received");
return Err("HID device was destroyed".into());
}
// This is sent when the HID device is opened. That is, the data that the HID
// device provides is read by some other process. You may ignore this event but
Expand Down Expand Up @@ -435,7 +434,7 @@ impl DualSenseDevice {
}
};

log::debug!("{}", state);
log::trace!("{}", state);

// Send the output report to the composite device so it can
// be processed by source devices.
Expand Down

0 comments on commit c38a94a

Please sign in to comment.