Fixes mouse_input event not being pushed everytime

This commit is contained in:
Carbonhell 2020-04-09 18:43:12 +02:00
parent ead469a411
commit c0c92c4259

View File

@ -523,8 +523,8 @@ impl Window {
state == glutin::ElementState::Pressed,
));
}
events.push(Event::MouseButton(button, state));
}
events.push(Event::MouseButton(button, state));
},
glutin::WindowEvent::KeyboardInput { input, .. } => {
if let Some(key) = input.virtual_keycode {