//! Platform-adaptive animation tuning. //! //! [`AnimationTuning`] is a Bevy resource that provides animation parameters //! adapted to the currently detected input platform. Systems and components //! that need animation timing should read from this resource instead of using //! hardcoded constants, so the same binary behaves appropriately on both a //! touchscreen phone and a desktop with a mouse. //! //! # Platform detection //! //! [`update_input_platform`] runs every frame. When a touch event is detected //! the resource switches to [`InputPlatform::Touch`] (mobile defaults); when a //! mouse event is detected it switches back to [`InputPlatform::Mouse`] //! (desktop defaults). The transition is immediate. //! //! # Usage //! //! ```ignore //! fn my_system(tuning: Res, time: Res