1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/libraries/intouch/src/events.hb

22 lines
321 B
Plaintext
Raw Normal View History

2024-11-03 19:38:40 -06:00
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 {
2024-11-09 20:44:08 -06:00
x_change: i8,
y_change: i8,
2024-11-03 19:38:40 -06:00
left: u8,
middle: u8,
right: u8,
}
GamepadEvent := struct {}