diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-11-17 06:52:51 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-11-17 06:52:51 +0100 |
commit | e7b25878fc0f73526ccfd7ef4286e25ac6fda776 (patch) | |
tree | a2d3ad0b15dae0e9526438e8d8574acf5cf8ad83 | |
parent | 28227a2142556f72239105f09a010232bd8f97a4 (diff) | |
parent | d4bed68dbe186bf6b7c297cc7751f75440d14137 (diff) | |
download | glutin-e7b25878fc0f73526ccfd7ef4286e25ac6fda776.tar.gz glutin-e7b25878fc0f73526ccfd7ef4286e25ac6fda776.zip |
Merge pull request #117 from glennw/x11-events
Add ctrl, shift, alt events for X11.
-rw-r--r-- | src/x11/window/events.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/x11/window/events.rs b/src/x11/window/events.rs index bf91e6a..9072a35 100644 --- a/src/x11/window/events.rs +++ b/src/x11/window/events.rs @@ -157,16 +157,16 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> { //ffi::XK_R14 => events::R14, //ffi::XK_F35 => events::F35, //ffi::XK_R15 => events::R15, - //ffi::XK_Shift_L => events::Shift_l, - //ffi::XK_Shift_R => events::Shift_r, - //ffi::XK_Control_L => events::Control_l, - //ffi::XK_Control_R => events::Control_r, + ffi::XK_Shift_L => events::LShift, + ffi::XK_Shift_R => events::RShift, + ffi::XK_Control_L => events::LControl, + ffi::XK_Control_R => events::RControl, //ffi::XK_Caps_Lock => events::Caps_lock, //ffi::XK_Shift_Lock => events::Shift_lock, //ffi::XK_Meta_L => events::Meta_l, //ffi::XK_Meta_R => events::Meta_r, - //ffi::XK_Alt_L => events::Alt_l, - //ffi::XK_Alt_R => events::Alt_r, + ffi::XK_Alt_L => events::LAlt, + ffi::XK_Alt_R => events::RAlt, //ffi::XK_Super_L => events::Super_l, //ffi::XK_Super_R => events::Super_r, //ffi::XK_Hyper_L => events::Hyper_l, |