Open Move HID output like PSMoveAPI
This commit is contained in:
parent
5faaf5906c
commit
dfa6fb5a7f
1 changed files with 2 additions and 0 deletions
|
|
@ -3490,7 +3490,9 @@ impl MoveLightWriter for HidMoveLightWriter {
|
|||
#[cfg(not(windows))]
|
||||
fn write_report(&mut self, hidraw_path: &str, report: &[u8]) -> Result<()> {
|
||||
let mut device = fs::OpenOptions::new()
|
||||
.read(true)
|
||||
.write(true)
|
||||
.custom_flags(libc::O_NONBLOCK)
|
||||
.open(hidraw_path)
|
||||
.with_context(|| format!("opening PS Move HID path {hidraw_path}"))?;
|
||||
device
|
||||
|
|
|
|||
Loading…
Reference in a new issue