bevy
bevy copied to clipboard
Input uses references when possible
Objective
- As noted in https://github.com/bevyengine/bevy/discussions/14180, there's no reason for some of input methods to use
Tinstead of&T
Solution
- Use references when possible for input
- Also update touches the same way for symmetry
Not using references is mostly not a problem in Bevy because most build in inputs are small types. It feels more correct to take references and it will be better for larger input types
Wondering if this needs a Migration note since some public signatures changed.
yes it should...
But I'm not sure I like this PR. It's the right thing to do, but there soo many additional &...
It looks like your PR is a breaking change, but you didn't provide a migration guide.
Could you add some context on what users should update when this change get released in a new version of Bevy?
It will be used to help writing the migration guide for the version. Putting it after a ## Migration Guide will help it get automatically picked up by our tooling.
Has merge conflicts, waiting on migration guide