Update pc_keyboard

Updated pc_keyboard to 0.7.0 and fixed breaking changes.
This commit is contained in:
ds797
2024-05-23 01:12:15 +00:00
parent 9c05cc9bd5
commit 1e108fba64
7 changed files with 49 additions and 49 deletions

View File

@@ -1363,8 +1363,8 @@ use crate::print;
pub async fn print_keypresses() {
let mut scancodes = ScancodeStream::new();
let mut keyboard = Keyboard::new(layouts::Us104Key, ScancodeSet1,
HandleControl::Ignore);
let mut keyboard = Keyboard::new(ScancodeSet1::new(),
layouts::Us104Key, HandleControl::Ignore);
while let Some(scancode) = scancodes.next().await {
if let Ok(Some(key_event)) = keyboard.add_byte(scancode) {