aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-30 14:01:52 +0100
committerTomaka17 <pierre.krieger1708@gmail.com>2014-11-06 19:09:07 +0100
commit2be71306ec40cd8cc660bbd4160103aa485b2999 (patch)
tree82c316d17fe37a458e5ec3d3709a90cb28c9a8c6 /src/events.rs
parent9926e179d6f8ebbc37625dce6682167c37c3a998 (diff)
downloadglutin-2be71306ec40cd8cc660bbd4160103aa485b2999.tar.gz
glutin-2be71306ec40cd8cc660bbd4160103aa485b2999.zip
Remove key modifiers in KeyboardInput
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/events.rs b/src/events.rs
index 59f44b4..fde55f5 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -18,7 +18,7 @@ pub enum Event {
Focused(bool),
/// An event from the keyboard has been received.
- KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),
+ KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>),
/// The cursor has moved on the window.
///
@@ -35,20 +35,6 @@ pub enum Event {
pub type ScanCode = u8;
-bitflags!(
- #[deriving(Show)]
- flags KeyModifiers: u8 {
- 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
- }
-)
-
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
pub enum ElementState {
Pressed,