Merge branch 'carbonhell/missing_mouse_event' into 'master'

Fixes mouse_input event not being pushed everytime

See merge request veloren/veloren!898
This commit is contained in:
Imbris 2020-04-10 04:28:17 +00:00
commit 31db87040a

View File

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