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 cmd: bool,
18 shift: bool,
19 click_count: usize,
20 },
21 LeftMouseUp {
22 position: Vector2F,
23 },
24 LeftMouseDragged {
25 position: Vector2F,
26 },
27 MouseMoved {
28 position: Vector2F,
29 left_mouse_down: bool,
30 },
31}