18 lines
267 B
Plaintext
18 lines
267 B
Plaintext
keycodes := @use("keycodes.hb");
|
|
.{KeyCode} := keycodes
|
|
|
|
KeyEvent := packed struct {
|
|
up: bool,
|
|
just_triggered: bool,
|
|
key: KeyCode,
|
|
}
|
|
|
|
MouseEvent := packed struct {
|
|
x_change: i8,
|
|
y_change: i8,
|
|
left: bool,
|
|
middle: bool,
|
|
right: bool,
|
|
}
|
|
|
|
GamepadEvent := struct {} |