pub(crate) fn add_scancode(scancode: u8) {
    let queue = match SCANCODE_QUEUE.try_get() {
        Ok(queue) => queue,
        Err(_) => {
            println!("WARNING: scancode queue uninitialized");
            return;
        }
    };

    if queue.push(scancode).is_err() {
        println!("WARNING: scancode queue full; dropping keyboard input");
        return;
    };

    WAKER.wake();
}
/// Called by the keyboard interrupt handler
///
/// Must not block or allocate.
Called by the keyboard interrupt handler
Must not block or allocate.
Called by the keyboard interrupt handler Must not block or allocate .
pub(crate) fn add_scancode(scancode: u8) {
    let queue = match SCANCODE_QUEUE.try_get() {
        Ok(queue) => queue,
        Err(_) => {
            println!("WARNING: scancode queue uninitialized");
            return;
        }
    };
    if queue.push(scancode).is_err() {
        println!("WARNING: scancode queue full; dropping keyboard input");
        return;
    };
    WAKER.wake();
}
pub ( crate ) fn add_scancode ( scancode : u8 ) { let queue = match SCANCODE_QUEUE . try_get ( ) { Ok ( queue ) => queue , Err ( _ ) => { println ! ( " " ) ; return ; } } ; if queue . push ( scancode ) . is_err ( ) { println ! ( " " ) ; return ; } ; WAKER . wake ( ) ; }
Called by the keyboard interrupt handler
Must not block or allocate.
Called by the keyboard interrupt handler Must not block or allocate .
scancode
u8
scancode
u8