threers 0.0.3

Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// One frame's worth of pointer input. The caller is responsible for
/// translating its platform's events into this shape and calling
/// `OrbitControls::update`.
#[derive(Debug, Clone, Copy, Default)]
pub struct PointerEvent {
    /// Cumulative pointer delta in pixels.
    pub dx: f32,
    pub dy: f32,
    /// Scroll delta (positive = zoom in / scroll up).
    pub wheel: f32,
    /// True while the rotate button is held (left mouse).
    pub rotating: bool,
    /// True while the pan button is held (right mouse or shift+left).
    pub panning: bool,
}