viewport-lib-input 0.2.0

Input handling for viewport-lib: the event resolver, the camera controllers, and the optional winit/egui adapters. A replaceable layer on viewport-lib-types - resolve events into an ActionFrame, then apply it to a Camera however you like.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Native-event translation into [`ViewportEvent`](super::ViewportEvent).
//!
//! Each host framework delivers input as its own event type, but the mapping
//! to [`ViewportEvent`](super::ViewportEvent) (buttons, wheel units,
//! modifiers, click-vs-drag) is otherwise identical, so it lives here once
//! per framework instead of in every host application. These adapters are
//! feature-gated per framework and can be used standalone, without any other
//! part of this crate.

#[cfg(feature = "winit-adapter")]
mod winit;
#[cfg(feature = "winit-adapter")]
pub use winit::{from_winit, from_winit_device};

#[cfg(feature = "egui-adapter")]
mod egui;
#[cfg(feature = "egui-adapter")]
pub use egui::from_egui;