bevy
bevy copied to clipboard
Add delta to CursorMoved event
Objective
- Fixes #11695
Solution
- Added
delta: Option<Vec2>tobevy_window::CursorMoved.deltais anOptionbecause theCursorMovedevent does get fired when the cursor was outside the window area in the last frame. In that case there is no cursor position from the last frame to compare with the current cursor position.
Changelog
- Added
delta: Option<Vec2>tobevy_window::CursorMoved.
Migration Guide
- You need to add
deltato any manually createdCursorMovedstruct.
Welcome, new contributor!
Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨