mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
9dfef453f9
# Objective - The `touch_screen_input_system` system runs on every tick. - It unconditionally calls `update(&mut self)`, on the `Touches` resource. - This blocks the usage of a `resource_changed::<Touches>` run condition. ## Solution - Remove `update(&mut self)` as it's only used in this one system, and in-lining the method implementation removes an indirection to an ambiguously named method. - Add conditional checks around the calls to clearing the internal maps. --------- Signed-off-by: Jean Mertz <git@jeanmertz.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |