forked from AbleOS/ableos
22 lines
321 B
Plaintext
22 lines
321 B
Plaintext
keycodes := @use("keycodes.hb");
|
|
.{KeyCode} := keycodes
|
|
|
|
KeyEvent := struct {
|
|
// 0 if down
|
|
// 1 if up
|
|
up: u8,
|
|
// 0 if not just triggered
|
|
// 1 if just triggered
|
|
just_triggered: u8,
|
|
key: KeyCode,
|
|
}
|
|
|
|
MouseEvent := struct {
|
|
x_change: u8,
|
|
y_change: u8,
|
|
left: u8,
|
|
middle: u8,
|
|
right: u8,
|
|
}
|
|
|
|
GamepadEvent := struct {} |