bevy/crates/bevy_input/src
Mateusz Wachowiak 759b3985d8
Extend Touches with clear and reset methods (#10930)
# Objective

- Resolves #10913.
- Extend `Touches` with methods that are implemented on `ButtonInput`.

## Solution

- Add function `clear_just_pressed` that clears the `just_pressed` state
of the touch input.
- Add function `clear_just_released` that clears the `just_released`
state of the touch input.
- Add function `clear_just_canceled` that clears the `just_canceled`
state of the touch input.
- Add function `release` that changes state of the touch input from
`pressed` to `just_released`.
- Add function `release_all` that changes state of every touch input
from `pressed` to `just_released`
- Add function `clear` that clears `just_pressed`, `just_released` and
`just_canceled` data for every input.
- Add function `reset_all` that clears `pressed`, `just_pressed`,
`just_released` and `just_canceled` data for every input.
- Add tests for functions above.
2024-01-04 23:13:29 +00:00
..
axis.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
button_input.rs Add method to check if all inputs are pressed (#11010) 2023-12-18 01:45:43 +00:00
common_conditions.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
gamepad.rs Rename Input to ButtonInput (#10859) 2023-12-06 20:32:34 +00:00
keyboard.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
lib.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
mouse.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
touch.rs Extend Touches with clear and reset methods (#10930) 2024-01-04 23:13:29 +00:00
touchpad.rs Bevy Input Docs : the modules (#9467) 2023-08-23 12:44:49 +00:00