Struct three_d::renderer::control::CameraControl
source · pub struct CameraControl {
pub left_drag_horizontal: CameraAction,
pub left_drag_vertical: CameraAction,
pub middle_drag_horizontal: CameraAction,
pub middle_drag_vertical: CameraAction,
pub right_drag_horizontal: CameraAction,
pub right_drag_vertical: CameraAction,
pub scroll_horizontal: CameraAction,
pub scroll_vertical: CameraAction,
}Expand description
A customizable controller for the camera. It is possible to specify a CameraAction for each of the input events.
Fields§
§left_drag_horizontal: CameraActionSpecifies what happens when dragging horizontally with the left mouse button.
left_drag_vertical: CameraActionSpecifies what happens when dragging vertically with the left mouse button.
middle_drag_horizontal: CameraActionSpecifies what happens when dragging horizontally with the middle mouse button.
middle_drag_vertical: CameraActionSpecifies what happens when dragging vertically with the middle mouse button.
right_drag_horizontal: CameraActionSpecifies what happens when dragging horizontally with the right mouse button.
right_drag_vertical: CameraActionSpecifies what happens when dragging vertically with the right mouse button.
scroll_horizontal: CameraActionSpecifies what happens when scrolling horizontally.
scroll_vertical: CameraActionSpecifies what happens when scrolling vertically.
Implementations§
source§impl CameraControl
impl CameraControl
Trait Implementations§
source§impl Clone for CameraControl
impl Clone for CameraControl
source§fn clone(&self) -> CameraControl
fn clone(&self) -> CameraControl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CameraControl
impl Debug for CameraControl
source§impl Default for CameraControl
impl Default for CameraControl
source§fn default() -> CameraControl
fn default() -> CameraControl
Returns the “default value” for a type. Read more