diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -50,6 +50,9 @@ pub fn run<F, G>(gnew: F) where G: state::Game + 'static, F: (Fn(&context::Conte ctx.maximize_canvas(); st.handle_resize(&ctx); }, + winit::event::WindowEvent::Focused(false) => { + st.keys = state::Keys::new(); + }, winit::event::WindowEvent::MouseInput { button, state, |
