mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
broke winit 19, fixed
This commit is contained in:
parent
14e87db417
commit
ea356177eb
@ -194,6 +194,24 @@ use winit::{
|
||||
TouchPhase, VirtualKeyCode, Window, WindowEvent,
|
||||
};
|
||||
|
||||
#[cfg(
|
||||
any(
|
||||
feature = "winit-25",
|
||||
feature = "winit-24",
|
||||
feature = "winit-23",
|
||||
feature = "winit-22",
|
||||
feature = "winit-20"
|
||||
)
|
||||
)]
|
||||
use winit::{
|
||||
error::ExternalError,
|
||||
event::{
|
||||
DeviceEvent, ElementState, Event, KeyboardInput, MouseButton, MouseScrollDelta, TouchPhase,
|
||||
VirtualKeyCode, WindowEvent,
|
||||
},
|
||||
window::{CursorIcon as MouseCursor, Window},
|
||||
};
|
||||
|
||||
// Ensure at least one is enabled
|
||||
#[cfg(not(any(
|
||||
feature = "winit-19",
|
||||
@ -205,15 +223,6 @@ use winit::{
|
||||
)))]
|
||||
compile_error!("Please enable at least one version of `winit` (see documentation for details).");
|
||||
|
||||
use winit::{
|
||||
error::ExternalError,
|
||||
event::{
|
||||
DeviceEvent, ElementState, Event, KeyboardInput, MouseButton, MouseScrollDelta, TouchPhase,
|
||||
VirtualKeyCode, WindowEvent,
|
||||
},
|
||||
window::{CursorIcon as MouseCursor, Window},
|
||||
};
|
||||
|
||||
// FIXME(thom): make updading winit and adding a new feature less of a hassle here.
|
||||
fn check_multiple_winits() {
|
||||
use std::io::Write as _;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user