Skip to content

Commit

Permalink
fix: ci build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
luan committed Apr 14, 2024
1 parent 2e3d19e commit f1e9155
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ bevy_egui = { version = "0.25", default-features = false, features = [
"default_fonts",
] }
rand = "0.8"
winit = "0.29"

[[example]]
name = "egui"
Expand Down
13 changes: 0 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@ pub enum PanCamAction {
Zoom,
}

/// Group of leafwing input actions for the `PanCam` component
/// This is only available when the `leafwing-input-manager` feature is enabled
#[derive(Actionlike, PartialEq, Eq, Hash, Clone, Copy, Debug, Reflect)]
#[cfg(feature = "leafwing-input-manager")]
pub enum PanCamAction {
/// Action to grab the camera
Grab,
/// Action to zoom in and out
Zoom,
}

#[cfg(not(feature = "leafwing-input-manager"))]
#[derive(Component)]
/// Component that adds panning camera controls to an orthographic camera
Expand Down Expand Up @@ -412,8 +401,6 @@ impl Default for PanCam {
mod tests {
use std::f32::INFINITY;

use bevy::prelude::OrthographicProjection;

use super::*;

/// Simple mock function to construct a square projection from a window size
Expand Down

0 comments on commit f1e9155

Please sign in to comment.