fix key repeats

This commit is contained in:
Quaternions 2023-10-23 16:30:14 -07:00
parent dd0b8fd1f0
commit fff4b7a09d

View File

@ -1098,7 +1098,7 @@ impl framework::Example for GlobalState {
//recalculate pressed keys on focus
},
winit::event::WindowEvent::KeyboardInput{
event:winit::event::KeyEvent{state, logical_key,..},
event:winit::event::KeyEvent{state,logical_key,repeat:false,..},
..
}=>{
let s=match state {