bevy/crates/bevy_input/src
Aztro 6dcff2bfe8
Mouse input accumulation (#14044)
# Objective

- Add the `AccumulatedMouseMotion` and `AccumulatedMouseScroll`
resources to make it simpler to track mouse motion/scroll changes
- Closes #13915

## Solution

- Created two resources, `AccumulatedMouseMotion` and
`AccumulatedMouseScroll`, and a method that tracks the `MouseMotion` and
`MouseWheel` events and accumulates their deltas every frame.
- Also modified the mouse input example to show how to use the
resources.

## Testing

- Tested the changes by modifying an existing example to use the newly
added resources, and moving/scrolling my trackpad around a ton.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
2024-07-01 14:27:21 +00:00
..
axis.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
button_input.rs Separate state crate (#13216) 2024-05-09 18:06:05 +00:00
common_conditions.rs Fix cyclic dep (#11523) 2024-01-25 17:44:32 +00:00
gamepad.rs Fix uses of "it's" vs "its". (#13033) 2024-04-19 18:17:31 +00:00
gestures.rs rename touchpad to gesture, and add new gestures (#13660) 2024-06-04 12:44:25 +00:00
keyboard.rs Fix a few "repeated word" typos (#13955) 2024-06-20 21:35:20 +00:00
lib.rs Mouse input accumulation (#14044) 2024-07-01 14:27:21 +00:00
mouse.rs Mouse input accumulation (#14044) 2024-07-01 14:27:21 +00:00
touch.rs fix previous_position / previous_force being discarded too early (#12556) 2024-04-01 21:45:47 +00:00