mirror of
https://github.com/storytold/winit.git
synced 2026-11-25 22:00:45 +01:00
1 parent
f81a0741f5
commit
52a78d61bf
1 file changed
+3
-1
@@ -278,7 +278,9 @@ impl EventsLoop {
|
||||
};
|
||||
|
||||
let keysym = unsafe {
|
||||
(self.display.xlib.XKeycodeToKeysym)(self.display.display, xkev.keycode as ffi::KeyCode, 0)
|
||||
let mut keysym = 0;
|
||||
(self.display.xlib.XLookupString)(xkev, ptr::null_mut(), 0, &mut keysym, ptr::null_mut());
|
||||
keysym
|
||||
};
|
||||
|
||||
let vkey = events::keysym_to_element(keysym as libc::c_uint);
|
||||
|
||||
Reference in new issue
Block a user