diff options
| author | tomaka <pierre.krieger1708@gmail.com> | 2014-10-11 17:53:56 +0200 | 
|---|---|---|
| committer | tomaka <pierre.krieger1708@gmail.com> | 2014-10-11 17:53:56 +0200 | 
| commit | 8e8549b4ac451d60bc67599e7336ead8a3b4a6ba (patch) | |
| tree | d005537a6dd033c9495acdc52bb3923ce71dab3c /src | |
| parent | bfbc46251196b58c31ce3b633597208d8132f953 (diff) | |
| parent | a2df6a86993aaa9ed5a352ae71fdc58922d505c6 (diff) | |
| download | glutin-8e8549b4ac451d60bc67599e7336ead8a3b4a6ba.tar.gz glutin-8e8549b4ac451d60bc67599e7336ead8a3b4a6ba.zip  | |
Merge pull request #50 from DavidPartouche/fix_warning
Fixed static uppercase warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/events.rs | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/src/events.rs b/src/events.rs index a3fef42..f28fb59 100644 --- a/src/events.rs +++ b/src/events.rs @@ -13,7 +13,7 @@ pub enum Event {      ReceivedCharacter(char),      /// The window gained or lost focus. -    ///  +    ///      /// The parameter is true if the window has gained focus, and false if it has lost focus.      Focused(bool), @@ -21,7 +21,7 @@ pub enum Event {      KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),      /// The cursor has moved on the window. -    ///  +    ///      /// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.      MouseMoved((int, int)), @@ -38,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      }  )  | 
