diff --git a/src/main.rs b/src/main.rs index 18aeb96f..b0ef2f2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -204,7 +204,6 @@ fn main() { .add_plugin(RapierPhysicsPlugin::::pixels_per_meter(100.0)) .add_plugin(InputManagerPlugin::::default()) .add_plugin(InputManagerPlugin::::default()) - .insert_resource(ToggleActions::::default()) .add_plugin(AttackPlugin) .add_plugin(AnimationPlugin) .add_plugin(AudioPlugin) diff --git a/src/ui.rs b/src/ui.rs index 8a2aa256..56b6ef1c 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,7 +1,7 @@ use bevy::{prelude::*, utils::HashMap, window::WindowId}; use bevy_egui::{egui, EguiContext, EguiInput, EguiPlugin, EguiSettings}; use iyes_loopless::prelude::*; -use leafwing_input_manager::{plugin::ToggleActions, prelude::ActionState}; +use leafwing_input_manager::prelude::ActionState; use crate::{assets::EguiFont, audio::*, input::MenuAction, metadata::GameMeta, GameState}; @@ -118,7 +118,6 @@ impl<'a> WidgetAdjacencyEntry<'a> { fn handle_menu_input( mut windows: ResMut, input: Query<&ActionState>, - input_toggle: Res>, mut egui_inputs: ResMut>, adjacencies: Res, mut egui_ctx: ResMut, @@ -126,10 +125,6 @@ fn handle_menu_input( use bevy::window::WindowMode; let input = input.single(); - if !input_toggle.enabled { - return; - } - // Handle fullscreen toggling if input.just_pressed(MenuAction::ToggleFullscreen) { if let Some(window) = windows.get_primary_mut() {