Skip to content

Commit

Permalink
Derive Reflect on PanOrbitCamera (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plonq authored Dec 23, 2024
1 parent fc1b58f commit 72df445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub struct PanOrbitCameraSystemSet;
/// ));
/// }
/// ```
#[derive(Component, Copy, Clone, Debug, PartialEq)]
#[derive(Component, Reflect, Copy, Clone, Debug, PartialEq)]
#[require(Camera3d)]
pub struct PanOrbitCamera {
/// The point to orbit around, and what the camera looks at. Updated automatically.
Expand Down
4 changes: 2 additions & 2 deletions src/touch.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use bevy::input::touch::Touch;
use bevy::math::Vec2;
use bevy::prelude::{Res, ResMut, Resource, Touches};
use bevy::prelude::*;

/// The control scheme to use for touch input. Given that some touch gestures don't make sense
/// being changed (e.g. pinch to zoom), there is just a set if different schemes rather than
/// full customization.
#[derive(Default, Debug, Copy, Clone, PartialEq)]
#[derive(Reflect, Default, Debug, Copy, Clone, PartialEq)]
pub enum TouchControls {
/// Touch controls where single finger orbits:
/// - One finger move: orbit
Expand Down

0 comments on commit 72df445

Please sign in to comment.