rename proces_glutin_events to process_winit_events

This commit is contained in:
griffi-gh 2024-02-12 23:53:14 +01:00
parent 2ba011a89b
commit f928970afd
2 changed files with 108 additions and 108 deletions

View file

@ -1,6 +1,6 @@
use glam::UVec2;
use shipyard::{World, Component, AllStoragesViewMut, SparseSet, NonSendSync, UniqueView};
use winit::event::{Event, DeviceEvent, DeviceId, WindowEvent, Touch, RawKeyEvent, TouchPhase};
use winit::event::{Event, DeviceEvent, DeviceId, WindowEvent, Touch};
use crate::rendering::Renderer;
pub mod player_actions;
@ -24,7 +24,7 @@ pub struct TouchEvent(pub Touch);
#[derive(Component, Clone, Copy, Debug, Default)]
pub struct WindowResizedEvent(pub UVec2);
pub fn process_glutin_events(world: &mut World, event: &Event<()>) {
pub fn process_winit_events(world: &mut World, event: &Event<()>) {
#[allow(clippy::collapsible_match, clippy::single_match)]
match event {
Event::WindowEvent { window_id: _, event } => match event {

View file

@ -51,7 +51,7 @@ use settings::{load_settings, GameSettings};
use camera::compute_cameras;
use events::{
clear_events,
process_glutin_events,
process_winit_events,
initial_resize_event,
player_actions::generate_move_events,
};
@ -257,7 +257,7 @@ pub fn kubi_main(
window_target.set_control_flow(ControlFlow::Poll);
process_glutin_events(&mut world, &event);
process_winit_events(&mut world, &event);
#[allow(clippy::collapsible_match, clippy::single_match)]
match event {