summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/mouse/event.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/src/mouse/event.rs b/core/src/mouse/event.rs
index 52e9d851..2f07b207 100644
--- a/core/src/mouse/event.rs
+++ b/core/src/mouse/event.rs
@@ -1,5 +1,4 @@
use super::Button;
-use crate::ButtonState;
/// A mouse event.
///
@@ -24,14 +23,11 @@ pub enum Event {
y: f32,
},
- /// A mouse button was pressed or released.
- Input {
- /// The button identifier
- button: Button,
+ /// A mouse button was pressed.
+ ButtonPressed(Button),
- /// The state of the button
- state: ButtonState,
- },
+ /// A mouse button was released.
+ ButtonReleased(Button),
/// The mouse wheel was scrolled.
WheelScrolled {