Skip to content

Commit

Permalink
fix(format): Remove unused code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaq authored and Derek J. Clark committed Mar 10, 2024
1 parent 3014b8b commit 35a26c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/drivers/lego/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const DINPUTLEFT_DATA: u8 = 0x07;
pub const DINPUTRIGHT_DATA: u8 = 0x08;
pub const KEYBOARD_TOUCH_DATA: u8 = 0x01;
pub const MOUSEFPS_DATA: u8 = 0x02;
pub const MOUSE_DATA: u8 = 0x09;
//pub const MOUSE_DATA: u8 = 0x09;
pub const XINPUT_DATA: u8 = 0x04;

// Input report axis ranges
Expand Down
1 change: 0 additions & 1 deletion src/input/composite_device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ impl CompositeDevice {
emit_queue.push(event);
self.emitted_mappings
.insert(mapping.name.clone(), mapping.clone());
todo!();
}
if let Some(gamepad) = &mapping.target_event.gamepad {
if let Some(button) = gamepad.button.as_ref() {
Expand Down
3 changes: 0 additions & 3 deletions src/input/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,6 @@ impl Manager {
log::debug!("HIDRaw added: {}", name);
let path = format!("/dev/{}", name);

// Signal that a source device was added
//self.tx.send(Command::SourceDeviceAdded)?;

// Look up the connected device using hidapi
let devices = hidraw::list_devices()?;
let device = devices
Expand Down

0 comments on commit 35a26c8

Please sign in to comment.