diff --git a/src/player.rs b/src/player.rs index b15d22d..bad44e4 100644 --- a/src/player.rs +++ b/src/player.rs @@ -17,18 +17,12 @@ pub struct PlayerPlugin; impl Plugin for PlayerPlugin { fn build(&self, app: &mut AppBuilder) { app - .init_resource::() .add_system(player_movement_system.system()) .add_system(player_look_system.system()) .add_startup_system(init_player.system()); } } -#[derive(Default)] -struct State { - mouse_motion_event_reader: EventReader, -} - #[derive(Default)] struct PlayerMarker; @@ -133,12 +127,12 @@ fn movement_axis(input: &Res>, plus: KeyCode, minus: KeyCode) -> fn player_look_system( time: Res