more log
parent
682fd71fc1
commit
c58115374b
|
|
@ -18,10 +18,16 @@ struct InputEngineDevice {
|
|||
}
|
||||
|
||||
pub fn build_input_engine_device(cfg: &Engine) -> Result<Box<dyn InputEngine>, String> {
|
||||
}
|
||||
|
||||
pub fn build_input_engine_device_rusb(cfg: &Engine) -> Result<Box<dyn InputEngine>, String> {
|
||||
let _device_cfg = cfg.device.as_ref().unwrap();
|
||||
|
||||
assert!(rusb::has_capability());
|
||||
|
||||
let ctx = rusb::Context::new().unwrap();
|
||||
assert!(ctx.devices().unwrap().len() > 0);
|
||||
|
||||
for device in ctx.devices().unwrap().iter() {
|
||||
let device_desc = device.device_descriptor().unwrap();
|
||||
println!("Bus {:03} Device {:03} ID {:04x}:{:04x}",
|
||||
|
|
|
|||
Loading…
Reference in New Issue