CursorMoved
CursorMoved
- window : bevy_ecs::entity::Entity
- position : glam::Vec2
- delta : core::option::Optionglam::Vec2
Description
An event reporting that the mouse cursor has moved inside a window.
The event is sent only if the cursor is over one of the application's windows. It is the translated version of
WindowEvent::CursorMoved
from thewinit
crate with the addition ofdelta
.Not to be confused with the
MouseMotion
event frombevy_input
.Because the range of data is limited by the window area and it may have been transformed by the OS to implement certain effects like acceleration, you should not use it for non-cursor-like behavior such as 3D camera control. Please see
MouseMotion
instead.