fix key repeats
This commit is contained in:
parent
dd0b8fd1f0
commit
fff4b7a09d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user