mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Update pc_keyboard
Updated pc_keyboard to 0.7.0 and fixed breaking changes.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user