Half-arsed visuals for virtual anime

This commit is contained in:
Luke D. Jones
2023-05-02 16:42:21 +12:00
parent 2a38f69cc4
commit 002dc8516d
8 changed files with 530 additions and 23 deletions

View File

@@ -42,6 +42,7 @@ impl HidRaw {
} else {
// Try to see if there is a virtual device created with uhid for testing
let dev_path = device.devpath().to_string_lossy();
dbg!(&dev_path);
if dev_path.contains("virtual") && dev_path.contains(&id_product.to_uppercase()) {
if let Some(dev_node) = device.devnode() {
info!("Using device at: {:?} for asdfgsadfgh control", dev_node);