Test fix for get_keys_released on Wayland

This commit is contained in:
Daniel Collin 2020-08-13 20:15:07 +02:00
parent 291d8a0441
commit f99ee45552
2 changed files with 5 additions and 1 deletions

View file

@ -224,7 +224,7 @@ impl Window {
#[cfg(feature = "x11")]
Window::X11(ref w) => w.get_keys_released(),
#[cfg(feature = "wayland")]
Window::Wayland(ref _w) => unimplemented!(),
Window::Wayland(ref w) => w.get_keys_released(),
}
}

View file

@ -597,6 +597,10 @@ impl Window {
self.key_handler.get_keys_pressed(repeat)
}
pub fn get_keys_released(&self) -> Option<Vec<Key>> {
self.key_handler.get_keys_released()
}
pub fn get_mouse_pos(&self, mode: MouseMode) -> Option<(f32, f32)> {
mouse_handler::get_pos(
mode,