mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
parent
f81a0741f5
commit
52a78d61bf
|
@ -278,7 +278,9 @@ impl EventsLoop {
|
||||||
};
|
};
|
||||||
|
|
||||||
let keysym = unsafe {
|
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);
|
let vkey = events::keysym_to_element(keysym as libc::c_uint);
|
||||||
|
|
Loading…
Reference in a new issue