WindowEvent
AppLifecycle
- bevy_window::event::AppLifecycle
CursorEntered
- bevy_window::event::CursorEntered
CursorLeft
- bevy_window::event::CursorLeft
CursorMoved
- bevy_window::event::CursorMoved
FileDragAndDrop
- bevy_window::event::FileDragAndDrop
Ime
- bevy_window::event::Ime
RequestRedraw
- bevy_window::event::RequestRedraw
WindowBackendScaleFactorChanged
- bevy_window::event::WindowBackendScaleFactorChanged
WindowCloseRequested
- bevy_window::event::WindowCloseRequested
WindowCreated
- bevy_window::event::WindowCreated
WindowDestroyed
- bevy_window::event::WindowDestroyed
WindowFocused
- bevy_window::event::WindowFocused
WindowMoved
- bevy_window::event::WindowMoved
WindowOccluded
- bevy_window::event::WindowOccluded
WindowResized
- bevy_window::event::WindowResized
WindowScaleFactorChanged
- bevy_window::event::WindowScaleFactorChanged
WindowThemeChanged
- bevy_window::event::WindowThemeChanged
MouseButtonInput
- bevy_input::mouse::MouseButtonInput
MouseMotion
- bevy_input::mouse::MouseMotion
MouseWheel
- bevy_input::mouse::MouseWheel
PinchGesture
- bevy_input::gestures::PinchGesture
RotationGesture
- bevy_input::gestures::RotationGesture
DoubleTapGesture
- bevy_input::gestures::DoubleTapGesture
PanGesture
- bevy_input::gestures::PanGesture
TouchInput
- bevy_input::touch::TouchInput
KeyboardInput
- bevy_input::keyboard::KeyboardInput
KeyboardFocusLost
- bevy_input::keyboard::KeyboardFocusLost
Description
Wraps all
bevy_window
andbevy_input
events in a common enum.Read these events with
EventReader<WindowEvent>
if you need to access window events in the order they were received from the operating system. Otherwise, the event types are individually readable withEventReader<E>
(e.g.EventReader<KeyboardInput>
).