merge commit. probably broken tbh

This commit is contained in:
2025-02-24 15:10:58 +00:00
parent 8d57540566
commit 2f08835d69
6 changed files with 63 additions and 0 deletions
+2
View File
@@ -17,6 +17,7 @@ static WAKER: AtomicWaker = AtomicWaker::new();
pub fn add_scancode(scancode: u8) {
if let Some(queue) = KBD_QUEUE.get() {
if queue.push(scancode).is_err() {
if queue.push(scancode).is_err() {
println!("WARNING: scancode queue full; dropping keyboard input");
} else {
@@ -54,6 +55,7 @@ impl Stream for ScancodeStream {
return Poll::Ready(Some(scancode));
}
WAKER.register(cx.waker());
WAKER.register(cx.waker());
queue.pop().map_or(Poll::Pending, |scancode| {