port to composite format

This commit is contained in:
bunnie 2022-05-30 18:52:03 +08:00
parent 372c2cb680
commit 647a3a26dd

View file

@ -161,8 +161,9 @@ fn xmain() -> ! {
.build(); .build();
#[cfg(any(target_os = "none", target_os = "xous"))] #[cfg(any(target_os = "none", target_os = "xous"))]
{ {
keyboard.interface().write_report(&Vec::<Keyboard>::new()).ok(); let keyboard = composite.interface::<NKROBootKeyboardInterface<'_, _, _,>, _>();
keyboard.interface().tick().unwrap(); keyboard.write_report(&Vec::<Keyboard>::new()).ok();
keyboard.tick().unwrap();
} }
#[cfg(any(target_os = "none", target_os = "xous"))] #[cfg(any(target_os = "none", target_os = "xous"))]