better cursor management
This commit is contained in:
@@ -58,9 +58,10 @@ impl winit::application::ApplicationHandler for Application {
|
||||
event,
|
||||
is_synthetic: _,
|
||||
} => {
|
||||
if event.state.is_pressed() {
|
||||
state.handle_keyboard_input(&event);
|
||||
}
|
||||
state.handle_keyboard_input(&event);
|
||||
}
|
||||
WindowEvent::ModifiersChanged(modifiers) => {
|
||||
state.update_modifiers(modifiers.state());
|
||||
}
|
||||
WindowEvent::CloseRequested => event_loop.exit(),
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user