xref: /StarryEngine/starry_toolkit/src/base/event.rs (revision 1bee64b64bc410ee78964a11a40a0fff69945480)
1 use super::vector2::Vector2;
2 
3 #[derive(Copy, Clone, Debug)]
4 pub enum Event {
5     Init,
6 
7     Mouse {
8         point: Vector2,
9         left_button: bool,
10         middle_button: bool,
11         right_button: bool,
12     },
13 
14     KeyPressed {
15         character: Option<char>,
16     },
17 
18     KeyReleased {
19         character: Option<char>,
20     },
21 
22     Scroll {
23         x: i32,
24         y: i32,
25     },
26 
27     Resize {
28         width: u32,
29         height: u32,
30     },
31 
32     Unknown,
33 }
34