Download kernel/src/window_manager/event.rs from Jaswanth-2008/AeroOS: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/Jaswanth-2008/AeroOS/resolve/main/kernel/src/window_manager/event.rs
- Command line
-
hf download hf://Jaswanth-2008/AeroOS/kernel/src/window_manager/event.rs
-
curl -L -o event.rs https://huggingface.co/Jaswanth-2008/AeroOS/resolve/main/kernel/src/window_manager/event.rs
351 Bytes
| use pc_keyboard::DecodedKey; | |
| pub enum MouseButton { | |
| Left, | |
| Right, | |
| Middle, | |
| } | |
| pub enum WindowEvent { | |
| MouseDown { x: i32, y: i32, button: MouseButton }, | |
| MouseUp { x: i32, y: i32, button: MouseButton }, | |
| MouseMove { x: i32, y: i32 }, | |
| KeyInput(DecodedKey), | |
| } | |