fix key repeats

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

View File

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