use bevy_ecs::prelude::*;
/// Pointer state for an interactive UI entity, refreshed every frame by
/// [`super::systems::update_interaction_system`].
#[derive(Component, Clone, Copy, Debug, Default)]
pub struct Interaction {
pub hovered: bool,
/// True while the left mouse button is held down over this entity.
pub pressed: bool,
/// True for exactly the frame the left mouse button went down over this entity.
pub clicked: bool,
}