Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ key_pressed
Function
key_pressed
user/src/io.rs:80–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
78
}
79
80
pub fn key_pressed() -> bool {
81
if sys_key_pressed() == 1 {
82
true
83
} else {
84
false
85
}
86
}
87
88
#[repr(C)]
89
pub struct InputEvent {
Callers
1
main
Function · 0.85
Calls
1
sys_key_pressed
Function · 0.70
Tested by
no test coverage detected