From 1f5042059cfc0e52f38d14d4cb96160d699da0bc Mon Sep 17 00:00:00 2001 From: Dennis Ranke Date: Thu, 21 Jul 2022 19:37:36 +0200 Subject: [PATCH] fix inputs getting stuck --- uw8-window/src/gpu/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uw8-window/src/gpu/mod.rs b/uw8-window/src/gpu/mod.rs index be1a15a..a0ef71e 100644 --- a/uw8-window/src/gpu/mod.rs +++ b/uw8-window/src/gpu/mod.rs @@ -182,13 +182,14 @@ impl WindowImpl for Window { self.gamepads[0] |= gamepad_button(&input); } else { - self.gamepads[1] &= !gamepad_button(&input); + self.gamepads[0] &= !gamepad_button(&input); } } _ => (), }, Event::RedrawEventsCleared => { if Instant::now() >= self.next_frame + // workaround needed on Wayland until the next winit release && self.window.fullscreen().is_some() == self.is_fullscreen { *control_flow = ControlFlow::Exit