Skip to content

Commit

Permalink
Set mouse internal poll rate if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
EthoIRL committed May 25, 2024
1 parent a8c136d commit 95e5315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gadgets/mouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ pub fn check_mouses(mouse_inputs: &Vec<HidMouse>, mouse_interfaces: &'static mut

_ = write_feature(&mut mouse_interface, mouse_feature);

if let Some(poll_rate) = mouse_input.mouse_poll_rate {
_ = write_poll_rate(&mut mouse_interface, poll_rate);
}

mouse_interfaces.push(mouse_interface);
}
}
Expand Down

0 comments on commit 95e5315

Please sign in to comment.