viewport-lib-types 0.3.0

Pure-data types for viewport-lib: submission payloads, handles, and frame config, free of any GPU dependency.
Documentation
//! Input vocabulary: events, semantic actions, input modes, and the binding
//! tables that map triggers to actions. Not tied to any particular windowing
//! or GUI framework.
//!
//! This is pure data. The renderer's input pipeline (the stateful accumulator,
//! the query-evaluation engine, and the native-event adapters for winit/egui)
//! consumes this vocabulary but lives in `viewport-lib`.

// Some binding/query vocabulary is deprecated but still defined and re-exported
// here for the compatibility layer; suppress the lint for these re-exports.
#![allow(deprecated)]

/// Semantic action enum.
pub mod action;
/// Per-frame resolved action output.
pub mod action_frame;
/// Binding, trigger, and modifier types.
pub mod binding;
/// Per-frame viewport context.
pub mod context;
/// The shape the pointer takes over a window.
pub mod cursor;
/// Default key/mouse bindings for the viewport.
pub mod defaults;
/// Viewport events, translated from native windowing/GUI events.
pub mod event;
/// Input mode enum (Normal, FlyMode, Manipulating).
pub mod mode;
/// Named control presets.
pub mod preset;
/// Touch gesture calibration.
pub mod touch;
/// Viewport gesture and binding types.
pub mod viewport_binding;

pub use action::Action;
pub use action_frame::{ActionFrame, NavigationActions, PointerFrame, ResolvedActionState};
pub use binding::{ActivationMode, Binding, KeyCode, Modifiers, MouseButton, Trigger, TriggerKind};
pub use context::{
    InputOwnership, KeyboardOwnership, PointerOwnership, ViewportContext, forward_to_viewport,
};
pub use cursor::{CursorShape, UnknownCursorShape};
pub use defaults::default_bindings;
pub use event::{ButtonState, ImeEvent, ScrollUnits, Theme, TouchId, TouchPhase, ViewportEvent};
pub use mode::{InputMode, NavigationMode};
pub use preset::{
    BindingPreset, viewer_bindings, viewport_camera_bindings, viewport_default_bindings,
};
pub use touch::TouchSettings;
pub use viewport_binding::{ModifiersMatch, ViewportBinding, ViewportGesture};