backend.winit: remove the moved() event

This event poses issues regarding its semantic (what space are the
coordinates in?) and arguably won't be used anyway. So let's remove it
for now, it can still be added afterwards if it appears to be really
needed.
This commit is contained in:
Victor Berger 2018-10-13 12:44:24 +02:00 committed by Victor Berger
parent df12fa4e8b
commit 9f0a1fb244
1 changed files with 0 additions and 5 deletions

View File

@ -213,8 +213,6 @@ pub trait WinitEventsHandler {
/// ///
/// Here are provided the new size (in physical pixels) and the new scale factor provided by winit. /// Here are provided the new size (in physical pixels) and the new scale factor provided by winit.
fn resized(&mut self, size: (f64, f64), scale: f64); fn resized(&mut self, size: (f64, f64), scale: f64);
/// The window was moved
fn moved(&mut self, position: LogicalPosition);
/// The window gained or lost focus /// The window gained or lost focus
fn focus_changed(&mut self, focused: bool); fn focus_changed(&mut self, focused: bool);
/// The window needs to be redrawn /// The window needs to be redrawn
@ -705,9 +703,6 @@ impl InputBackend for WinitInputBackend {
events_handler.resized(physical_size.into(), wsize.dpi_factor); events_handler.resized(physical_size.into(), wsize.dpi_factor);
} }
} }
(WindowEvent::Moved(position), _, Some(events_handler)) => {
events_handler.moved(position)
}
(WindowEvent::Focused(focus), _, Some(events_handler)) => { (WindowEvent::Focused(focus), _, Some(events_handler)) => {
events_handler.focus_changed(focus) events_handler.focus_changed(focus)
} }