mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Merge pull request #436 from Esption/master
Added mut so glutin can compile on nightly.
This commit is contained in:
commit
479e51234e
|
@ -193,7 +193,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
||||||
ffi::KeyPress | ffi::KeyRelease => {
|
ffi::KeyPress | ffi::KeyRelease => {
|
||||||
use events::Event::{KeyboardInput, ReceivedCharacter};
|
use events::Event::{KeyboardInput, ReceivedCharacter};
|
||||||
use events::ElementState::{Pressed, Released};
|
use events::ElementState::{Pressed, Released};
|
||||||
let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&xev) };
|
let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&mut xev) };
|
||||||
|
|
||||||
if event.type_ == ffi::KeyPress {
|
if event.type_ == ffi::KeyPress {
|
||||||
let raw_ev: *mut ffi::XKeyEvent = event;
|
let raw_ev: *mut ffi::XKeyEvent = event;
|
||||||
|
|
Loading…
Reference in a new issue