aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-03 23:23:40 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-03 23:23:40 +0100
commit0937d809b58472f815fd97598f379bbd13937e7f (patch)
tree438ed8c0ce41fa513e92a4dd0696bf4114df38fa /src/events.rs
parentebe32bb2d803bc22c4b309acbbd48f3dc2a12127 (diff)
parent4c5e430dd3fcd38c29bfbc20dc0cc65defd33224 (diff)
downloadglutin-0937d809b58472f815fd97598f379bbd13937e7f.tar.gz
glutin-0937d809b58472f815fd97598f379bbd13937e7f.zip
Merge pull request #181 from tomaka/update-rustc
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 beafbec..8b993bb 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,4 +1,4 @@
-#[deriving(Clone, Show, Copy)]
+#[derive(Clone, Show, Copy)]
pub enum Event {
/// The size of the window has changed.
Resized(uint, uint),
@@ -38,13 +38,13 @@ pub enum Event {
pub type ScanCode = u8;
-#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
+#[derive(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum ElementState {
Pressed,
Released,
}
-#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
+#[derive(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum MouseButton {
LeftMouseButton,
RightMouseButton,
@@ -52,7 +52,7 @@ pub enum MouseButton {
OtherMouseButton(u8),
}
-#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
+#[derive(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum VirtualKeyCode {
/// The '1' key over the letters.
Key1,