mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Test fix for get_keys_released on Wayland
This commit is contained in:
parent
291d8a0441
commit
f99ee45552
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue