Enum amethyst_renderer::Event [−]
pub enum Event {
WindowEvent {
window_id: WindowId,
event: WindowEvent,
},
DeviceEvent {
device_id: DeviceId,
event: DeviceEvent,
},
Awakened,
Suspended(bool),
}Describes a generic event.
Variants
WindowEventFields of WindowEvent
window_id: WindowId | |
event: WindowEvent |
DeviceEventFields of DeviceEvent
device_id: DeviceId | |
event: DeviceEvent |
AwakenedSuspended(bool)The application has been suspended or resumed.
The parameter is true if app was suspended, and false if it has been resumed.
Trait Implementations
impl Debug for Event
impl Debug for Eventfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for Event
impl Clone for Event