Use new enum variant and new winit repo

This commit is contained in:
Richard 2021-06-09 15:00:01 -03:00 committed by Héctor Ramón Jiménez
parent 9ae22b58d8
commit 96a462d2f2
No known key found for this signature in database
GPG key ID: 44B88EB52AB1EE8D
6 changed files with 41 additions and 18 deletions

View file

@ -23,10 +23,27 @@ pub enum Event {
/// A touch event
Touch(touch::Event),
// TODO: System(system::Event)?
/// A url was received.
UrlReceived(String),
/// A platform specific event
PlatformSpecific(PlatformSpecific),
}
/// A platform specific event
#[derive(Debug, Clone, PartialEq)]
pub enum PlatformSpecific {
/// A MacOS specific event
MacOS(MacOS),
}
/// Describes an event specific to MacOS
#[derive(Debug, Clone, PartialEq)]
pub enum MacOS {
/// Triggered when the app receives an URL from the system
///
/// _**Note:** For this event to be triggered, the executable needs to be properly [bundled]!_
///
/// [bundled]: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW19
ReceivedUrl(String),
}
/// The status of an [`Event`] after being processed.