From 6c2eb5ff295ecbd4ae3f57b6a5e4ed286f0592a9 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sun, 1 Oct 2023 19:29:29 -0700 Subject: [PATCH] this needs timers --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index e574f71..6c78fb6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -861,6 +861,10 @@ impl framework::Example for GraphicsData { _=>(), } }, + winit::event::WindowEvent::Focused(state)=>{ + //pause unpause + //recalculate pressed keys on focus + } _=>(), } }