Introduce subscription::Event
... and remove `PlatformSpecific` from `Event`
This commit is contained in:
parent
83296a73eb
commit
5d7dcf417c
13 changed files with 156 additions and 129 deletions
|
|
@ -172,7 +172,7 @@ where
|
|||
core::Event::Keyboard(keyboard_event) => {
|
||||
Some(Event::Keyboard(keyboard_event))
|
||||
}
|
||||
_ => None,
|
||||
core::Event::Window(_) => None,
|
||||
};
|
||||
|
||||
if let Some(canvas_event) = canvas_event {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ where
|
|||
core::Event::Window(window::Event::RedrawRequested(instant)) => {
|
||||
Some(Event::RedrawRequested(instant))
|
||||
}
|
||||
_ => None,
|
||||
core::Event::Window(_) => None,
|
||||
};
|
||||
|
||||
if let Some(custom_shader_event) = custom_shader_event {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue