From fff4b7a09d42752988b2993848d1049d38f6e054 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 23 Oct 2023 16:30:14 -0700 Subject: [PATCH] fix key repeats --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 19a4240..6502646 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1097,8 +1097,8 @@ impl framework::Example for GlobalState { //pause unpause //recalculate pressed keys on focus }, - winit::event::WindowEvent::KeyboardInput { - event:winit::event::KeyEvent{state, logical_key,..}, + winit::event::WindowEvent::KeyboardInput{ + event:winit::event::KeyEvent{state,logical_key,repeat:false,..}, .. }=>{ let s=match state {