Move all crates to a top-level crates folder

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-10-04 13:22:21 -06:00
co-authored by Max Brunsfeld
parent d768224182
commit fdfed3d7db
282 changed files with 195588 additions and 16 deletions
+29
View File
@@ -0,0 +1,29 @@
use crate::{geometry::vector::Vector2F, keymap::Keystroke};
#[derive(Clone, Debug)]
pub enum Event {
KeyDown {
keystroke: Keystroke,
chars: String,
is_held: bool,
},
ScrollWheel {
position: Vector2F,
delta: Vector2F,
precise: bool,
},
LeftMouseDown {
position: Vector2F,
cmd: bool,
},
LeftMouseUp {
position: Vector2F,
},
LeftMouseDragged {
position: Vector2F,
},
MouseMoved {
position: Vector2F,
left_mouse_down: bool,
},
}