cargo fmt

This commit is contained in:
Yu Chen 2022-06-20 23:32:27 +08:00
parent 45c2caf564
commit a6c8f4de34
13 changed files with 181 additions and 135 deletions

View file

@ -50,7 +50,6 @@ impl VirtIOGPU {
}
}
}
}
impl GPUDevice for VirtIOGPU {
@ -63,7 +62,5 @@ impl GPUDevice for VirtIOGPU {
core::slice::from_raw_parts_mut(ptr, self.fb.len())
}
}
fn update_cursor(&self) {
}
fn update_cursor(&self) {}
}

View file

@ -1,10 +1,17 @@
use crate::{
gui::{Button, Component},
sync::UPIntrFreeCell,
syscall::PAD,
};
use alloc::{string::ToString, sync::Arc};
use core::any::Any;
use alloc::{sync::Arc, string::ToString};
use embedded_graphics::{text::Text, prelude::{Size, Point}};
use embedded_graphics::{
prelude::{Point, Size},
text::Text,
};
use k210_hal::cache::Uncache;
use virtio_drivers::{VirtIOHeader, VirtIOInput};
use virtio_input_decoder::{Decoder, Key, KeyType};
use crate::{gui::{Button, Component}, sync::UPIntrFreeCell, syscall::PAD};
use super::GPU_DEVICE;
@ -56,13 +63,12 @@ impl INPUTDevice for VirtIOINPUT {
} else {
a.repaint(k.to_string())
}
},
Err(_) => {},
}
Err(_) => {}
}
}
}
virtio_input_decoder::DecodeType::Mouse(mouse) => println!("{:?}", mouse),
}
}
}
}

View file

@ -1,9 +1,9 @@
pub mod block;
pub mod chardev;
pub mod plic;
pub mod gpu;
pub mod input;
pub mod plic;
pub use block::BLOCK_DEVICE;
pub use chardev::UART;
pub use gpu::*;
pub use input::*;
pub use input::*;