diff --git a/src/os/posix/mod.rs b/src/os/posix/mod.rs index b9c67cc..d1428b0 100644 --- a/src/os/posix/mod.rs +++ b/src/os/posix/mod.rs @@ -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(), } } diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index c87c261..b637c56 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -597,6 +597,10 @@ impl Window { self.key_handler.get_keys_pressed(repeat) } + pub fn get_keys_released(&self) -> Option> { + self.key_handler.get_keys_released() + } + pub fn get_mouse_pos(&self, mode: MouseMode) -> Option<(f32, f32)> { mouse_handler::get_pos( mode,