aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Partouche <david@manateedev.com>2014-10-11 12:38:34 +0200
committerDavid Partouche <david@manateedev.com>2014-10-11 12:38:34 +0200
commita2df6a86993aaa9ed5a352ae71fdc58922d505c6 (patch)
treed005537a6dd033c9495acdc52bb3923ce71dab3c /src
parent10f625c2c8f601af6fe7cc9fbfcf728e716bdd70 (diff)
downloadglutin-a2df6a86993aaa9ed5a352ae71fdc58922d505c6.tar.gz
glutin-a2df6a86993aaa9ed5a352ae71fdc58922d505c6.zip
Changed statics to uppercase
Diffstat (limited to 'src')
-rw-r--r--src/events.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/events.rs b/src/events.rs
index e36a7a6..f28fb59 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,5 +1,3 @@
-#![allow(non_uppercase_statics)]
-
#[deriving(Clone,Show)]
pub enum Event {
/// The size of the window has changed.
@@ -40,14 +38,14 @@ pub type ScanCode = u8;
bitflags!(
#[deriving(Show)]
flags KeyModifiers: u8 {
- const LeftControlModifier = 1,
- const RightControlModifier = 2,
- const LeftShitModifier = 4,
- const RightShitModifier = 8,
- const LeftAltModifier = 16,
- const RightRightModifier = 32,
- const NumLockModifier = 64,
- const CapsLockModifier = 128
+ const LEFT_CONTROL_MODIFIER = 1,
+ const RIGHT_CONTROL_MODIFIER = 2,
+ const LEFT_SHIFT_MODIFIER = 4,
+ const RIGHT_SHIFT_MODIFIER = 8,
+ const LEFT_ALT_MODIFIER = 16,
+ const RIGHT_ALT_MODIFIER = 32,
+ const NUM_LOCK_MODIFIER = 64,
+ const CAPS_LOCK_MODIFIER = 128
}
)