1use crate::{geometry::vector::Vector2F, keymap::Keystroke};
2
3#[derive(Clone, Debug)]
4pub enum Event {
5 KeyDown {
6 keystroke: Keystroke,
7 chars: String,
8 is_held: bool,
9 },
10 ScrollWheel {
11 position: Vector2F,
12 delta: Vector2F,
13 precise: bool,
14 },
15 LeftMouseDown {
16 position: Vector2F,
17 ctrl: bool,
18 alt: bool,
19 shift: bool,
20 cmd: bool,
21 click_count: usize,
22 },
23 LeftMouseUp {
24 position: Vector2F,
25 },
26 LeftMouseDragged {
27 position: Vector2F,
28 },
29 MouseMoved {
30 position: Vector2F,
31 left_mouse_down: bool,
32 },
33}