update dependencies, disable wayland support

wayland support doesn't fully work with gnome
(missing window decoration)
This commit is contained in:
2022-01-23 13:16:04 +01:00
parent 81a38c2d75
commit cacde9136c
3 changed files with 72 additions and 224 deletions

View File

@@ -151,7 +151,7 @@ impl MicroW8 {
{
let time = instance.start_time.elapsed().as_millis() as i32;
let mut gamepad: u32 = 0;
for key in self.window.get_keys().unwrap_or(Vec::new()) {
for key in self.window.get_keys() {
if let Some(index) = GAMEPAD_KEYS.iter().enumerate().find(|(_, &k)| k == key).map(|(i, _)| i) {
gamepad |= 1 << index;
}