From 35a97ab0d42fbcca42c44ad0ccb18fdd08978fbe Mon Sep 17 00:00:00 2001 From: rezural Date: Thu, 6 Jan 2022 15:06:35 +1100 Subject: [PATCH] derive clone for Input --- crates/bevy_input/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/input.rs b/crates/bevy_input/src/input.rs index 09aeea7b88d97..b98e2b25e85ca 100644 --- a/crates/bevy_input/src/input.rs +++ b/crates/bevy_input/src/input.rs @@ -28,7 +28,7 @@ use bevy_ecs::schedule::State; /// * Call the [`Input::press`] method for each press event. /// * Call the [`Input::release`] method for each release event. /// * Call the [`Input::clear`] method at each frame start, before processing events. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Input { pressed: HashSet, just_pressed: HashSet,