use C abi for syscalls

This commit is contained in:
sawyer committed 2025-09-26 23:39:19 -06:00
1 parent bf3b37783f
commit 7bd6012748
5 files changed
+61 -52

No files matched your search

+2
View File
@@ -14,6 +14,7 @@ pub mod keyboard {
}
#[derive(Debug)]
#[repr(C)]
pub struct KeyEvent {
pub key: KeyCode,
pub state: KeyState,
@@ -22,6 +23,7 @@ pub mod keyboard {
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum KeyState {
Idle = 0,
Pressed = 1,