pub trait InputEvent: Sealed + 'static {
// Required method
fn to_platform_input(self) -> PlatformInput;
}Expand description
An event from a platform input source.
Required Methods§
Sourcefn to_platform_input(self) -> PlatformInput
fn to_platform_input(self) -> PlatformInput
Convert this event into the platform input enum.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".