aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/events.rs b/src/events.rs
index 5a5e2ab..2fcdc61 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,4 +1,6 @@
-#[derive(Clone, Debug, Copy)]
+use std::path::PathBuf;
+
+#[derive(Clone, Debug)]
pub enum Event {
/// The size of the window has changed.
Resized(u32, u32),
@@ -9,6 +11,9 @@ pub enum Event {
/// The window has been closed.
Closed,
+ /// A file has been dropped into the window.
+ DroppedFile(PathBuf),
+
/// The window received a unicode character.
ReceivedCharacter(char),
@@ -259,9 +264,9 @@ pub enum VirtualKeyCode {
NumpadEquals,
OEM102,
Period,
- Playpause,
+ PlayPause,
Power,
- Prevtrack,
+ PrevTrack,
RAlt,
RBracket,
RControl,
@@ -280,7 +285,7 @@ pub enum VirtualKeyCode {
VolumeDown,
VolumeUp,
Wake,
- Webback,
+ WebBack,
WebFavorites,
WebForward,
WebHome,