ui_input_state/
lib.rs

1// Copyright 2025 the UI Events Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4//! UI Input State is a Rust crate which ...
5//!
6//! ## Features
7//!
8//! - `std` (enabled by default): Use the Rust standard library.
9// LINEBENDER LINT SET - lib.rs - v3
10// See https://linebender.org/wiki/canonical-lints/
11// These lints shouldn't apply to examples or tests.
12#![cfg_attr(not(test), warn(unused_crate_dependencies))]
13// These lints shouldn't apply to examples.
14#![warn(clippy::print_stdout, clippy::print_stderr)]
15// Targeting e.g. 32-bit means structs containing usize can give false positives for 64-bit.
16#![cfg_attr(target_pointer_width = "64", warn(clippy::trivially_copy_pass_by_ref))]
17// END LINEBENDER LINT SET
18#![no_std]
19
20extern crate alloc;
21
22mod input_state;
23mod keyboard_state;
24mod primary_pointer_state;
25
26pub use crate::input_state::InputState;
27pub use crate::keyboard_state::KeyboardState;
28pub use crate::primary_pointer_state::PrimaryPointerState;