aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-11-06 19:53:45 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-11-06 19:53:45 +0100
commitb55f18f13545422f9f19658d0ae02bb7e83ea0cd (patch)
tree82c316d17fe37a458e5ec3d3709a90cb28c9a8c6 /src/events.rs
parent9926e179d6f8ebbc37625dce6682167c37c3a998 (diff)
parent2be71306ec40cd8cc660bbd4160103aa485b2999 (diff)
downloadglutin-b55f18f13545422f9f19658d0ae02bb7e83ea0cd.tar.gz
glutin-b55f18f13545422f9f19658d0ae02bb7e83ea0cd.zip
Merge pull request #92 from tomaka/remove-modifiers
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,