aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-12-13 20:07:35 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-12-13 20:07:35 +0100
commita79bc34807fc0bb991a8693f0d7271b17a7c6513 (patch)
tree12fb2328d35e30e73164887d492b05af38ffa4fa /src/events.rs
parent230b0dd9ed27863daa8a6afefe7394ae4e6a38b9 (diff)
downloadglutin-a79bc34807fc0bb991a8693f0d7271b17a7c6513.tar.gz
glutin-a79bc34807fc0bb991a8693f0d7271b17a7c6513.zip
Update for Rustc
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/events.rs b/src/events.rs
index fde55f5..76fda81 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,4 +1,4 @@
-#[deriving(Clone,Show)]
+#[deriving(Clone, Show, Copy)]
pub enum Event {
/// The size of the window has changed.
Resized(uint, uint),
@@ -35,13 +35,13 @@ pub enum Event {
pub type ScanCode = u8;
-#[deriving(Show, Hash, PartialEq, Eq, Clone)]
+#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum ElementState {
Pressed,
Released,
}
-#[deriving(Show, Hash, PartialEq, Eq, Clone)]
+#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum MouseButton {
LeftMouseButton,
RightMouseButton,
@@ -49,7 +49,7 @@ pub enum MouseButton {
OtherMouseButton(u8),
}
-#[deriving(Show, Hash, PartialEq, Eq, Clone)]
+#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum VirtualKeyCode {
/// The '1' key over the letters.
Key1,