Use winit and glutin forks in iced-rs org
This commit is contained in:
parent
96a462d2f2
commit
612585109f
5 changed files with 25 additions and 10 deletions
|
|
@ -13,8 +13,10 @@ categories = ["gui"]
|
|||
[features]
|
||||
debug = ["iced_winit/debug"]
|
||||
|
||||
[dependencies]
|
||||
glutin = "0.27"
|
||||
[dependencies.glutin]
|
||||
version = "0.27"
|
||||
git = "https://github.com/iced-rs/glutin"
|
||||
rev = "be6793b5b3defc9452cd1c896cd315ed7442d546"
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.4"
|
||||
|
|
|
|||
|
|
@ -237,9 +237,15 @@ async fn run_instance<A, E, C>(
|
|||
|
||||
context.window().request_redraw();
|
||||
}
|
||||
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))) => {
|
||||
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(
|
||||
event::MacOS::ReceivedUrl(url),
|
||||
)) => {
|
||||
use iced_native::event;
|
||||
events.push(iced_native::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))));
|
||||
events.push(iced_native::Event::PlatformSpecific(
|
||||
event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(
|
||||
url,
|
||||
)),
|
||||
));
|
||||
}
|
||||
event::Event::UserEvent(message) => {
|
||||
messages.push(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue