//! Shared helper for writing input events to both individual and `WindowEvent` channels.
//!
//! Bevy's picking system reads `MessageReader<WindowEvent>`, while other systems read
//! individual message types like `MessageReader<CursorMoved>`. Bevy's winit integration
//! writes to both channels, so our simulated input must do the same.
use Message;
use *;
use WindowEvent;
/// Write an event to both its individual message channel and the `WindowEvent` channel.
///
/// This ensures systems reading either channel (like `bevy_picking`) see the event.
/// Mirrors the dual-write pattern from `bevy_winit::state::forward_bevy_events()`.