xref: /StarryEngine/starry_toolkit/src/base/event.rs (revision 8a41b76c5717dfb7ea5d2beaed20030c10ffce86)
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         scancode: u8,
17     },
18 
19     KeyReleased {
20         character: Option<char>,
21         scancode: u8,
22     },
23 
24     Scroll {
25         x: i32,
26         y: i32,
27     },
28 
29     Resize {
30         width: u32,
31         height: u32,
32     },
33 
34     Unknown,
35 }
36