mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Add ctrl, shift, alt events for X11.
This commit is contained in:
parent
28227a2142
commit
d4bed68dbe
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue