cargo fmt

macos-click-through
Jan Sosulski 3 years ago committed by Keith Simmons
parent f17020b6af
commit 81f52db78b

@ -1,6 +1,6 @@
use glutin::{PossiblyCurrent, WindowedContext};
use glutin::event::{ElementState, Event, KeyEvent, WindowEvent}; use glutin::event::{ElementState, Event, KeyEvent, WindowEvent};
use glutin::keyboard::Key; use glutin::keyboard::Key;
use glutin::{PossiblyCurrent, WindowedContext};
use winit::platform::modifier_supplement::KeyEventExtModifierSupplement; use winit::platform::modifier_supplement::KeyEventExtModifierSupplement;
@ -32,7 +32,11 @@ impl KeyboardManager {
} }
} }
pub fn handle_event(&mut self, event: &Event<()>, windowed_context: &WindowedContext<PossiblyCurrent>) { pub fn handle_event(
&mut self,
event: &Event<()>,
windowed_context: &WindowedContext<PossiblyCurrent>,
) {
match event { match event {
Event::WindowEvent { Event::WindowEvent {
event: WindowEvent::Focused(_focused), event: WindowEvent::Focused(_focused),

@ -120,7 +120,8 @@ impl GlutinWindowWrapper {
} }
pub fn handle_event(&mut self, event: Event<()>) { pub fn handle_event(&mut self, event: Event<()>) {
self.keyboard_manager.handle_event(&event, &self.windowed_context); self.keyboard_manager
.handle_event(&event, &self.windowed_context);
self.mouse_manager.handle_event( self.mouse_manager.handle_event(
&event, &event,
&self.keyboard_manager, &self.keyboard_manager,

Loading…
Cancel
Save