Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
EthoIRL committed May 25, 2024
1 parent 0addef0 commit 2790f03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/example/bin-injection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extern crate hid_api_rs;
use std::{io, process, thread};
use std::env;
use std::io::BufWriter;
use std::sync::Mutex;
use std::time::Duration;

use hid_api_rs::gadgets::mouse;
Expand Down
2 changes: 1 addition & 1 deletion src/example/bin-mouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn main() {
// TODO: /dev/input/mice will usually be the same for everyone. if not find your device by-id
mouse_inputs: Some([HidMouse { mouse_path: String::from("/dev/input/mice"), mouse_poll_rate: Some(1000), mouse_side_buttons: true }].to_vec()),
// TODO: USER!, replace these path's to your own keyboard paths for functionality! These will always be different for each user (Different keyboards & hardware)
keyboard_inputs: Some([String::from("/dev/input/by-id/usb-Logitech_G502_HERO_Gaming_Mouse_0E6D395D3333-if01-event-kbd")].to_vec()),
keyboard_inputs: Some([String::from("/dev/input/by-id/usb-Keychron_K4_Keychron_K4-event-kbd"), String::from("/dev/input/by-id/usb-Logitech_G502_HERO_Gaming_Mouse_0E6D395D3333-if01-event-kbd")].to_vec()),
// keyboard_inputs: None,
gadget_output: String::from("/dev/hidg0"),
};
Expand Down

0 comments on commit 2790f03

Please sign in to comment.