bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Add delta to CursorMoved event

Open lynn-lumen opened this issue 1 year ago • 1 comments

Objective

  • Fixes #11695

Solution

  • Added delta: Option<Vec2> to bevy_window::CursorMoved. delta is an Option because the CursorMoved event 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> to bevy_window::CursorMoved.

Migration Guide

  • You need to add delta to any manually created CursorMoved struct.

lynn-lumen avatar Feb 05 '24 04:02 lynn-lumen

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

github-actions[bot] avatar Feb 05 '24 04:02 github-actions[bot]